Skip to content

jestenough/neovim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Neovim configuration
====================

Lua-based Neovim configuration.
No keybinding frameworks. 
No hidden abstractions.

Quick start
-----------

Remove existing config (optional):
rm -rf ~/.config/nvim ~/.local/share/nvim ~/.cache/nvim

Install config:
git clone <repository_url> ~/.config/nvim

Start Neovim:
nvim

Wait until plugins and LSP servers finish installing.

Done.

Configuration Overview
======================

|
|- init.lua -- main entry point, loads settings, plugins and keymaps
|
|- lua
|  |
|  |- config
|  |  |
|  |  |- comment.lua -- comment plugin configuration
|  |  |- lsp.lua -- LSP client configuration
|  |  |- lualine.lua -- statusline configuration
|  |  |- neotree.lua -- file explorer configuration
|  |  |- telescope.lua -- telescope configuration
|  |  |- theme.lua -- colorscheme and theme setup
|  |  |- toggleterm.lua -- integrated terminal configuration
|  |  |- treesitter.lua -- Tree-sitter configuration
|  |
|  |- keys
|  |  |
|  |  |- alias.lua -- helper functions for defining key mappings
|  |  |- hot.lua -- custom key mappings
|  |  |- init.lua -- key mappings entry point
|  |
|  |- plugins
|  |  |
|  |  |- init.lua -- plugin manager bootstrap
|  |  |- lang.lua -- language-specific plugins
|  |  |- lsp.lua -- LSP-related plugins
|  |  |- term.lua -- terminal-related plugins
|  |  |- ui.lua -- UI-related plugins
|  |
|  |- settings
|     |
|     |- autosave.lua -- autosave behavior
|     |- etc.lua -- miscellaneous editor options
|     |- init.lua -- settings entry point
|     |- search.lua -- search and highlight settings
|     |- tabs.lua -- tabs and indentation settings
|     |- ui.lua -- UI-related editor options


Hot keys
--------
<leader>w -- save file
<leader>q -- quit current window
<leader>Q -- quit all windows
<leader>h -- clear search highlight

<C-h> -- move to left window
<C-j> -- move to bottom window
<C-k> -- move to top window
<C-l> -- move to right window

<C-Up> -- increase window height
<C-Down> -- decrease window height
<C-Left> -- decrease window width
<C-Right> -- increase window width

<leader>z -- toggle window zoom

<gd> -- go to definition
<gD> -- go to declaration
<gi> -- go to implementation
<gr> -- list references
<K> -- show hover documentation
<leader>rn -- rename symbol
<leader>ca -- code action
<leader>f -- format buffer

<[d> -- previous diagnostic
<]d> -- next diagnostic
<leader>z -- show diagnostic message

<leader>t -- toggle terminal
<Esc> -- exit terminal mode

<leader>e -- toggle file tree
<leader>o -- focus file tree

<leader>ff -- find files
<leader>fg -- live grep
<leader>fb -- list open buffers
<leader>fh -- help tags

<leader>th -- switch theme <light <--> dark>

About

Personal neovim configuration

Topics

Resources

Stars

Watchers

Forks

Languages