This is my carefully crafted, in some places neatly stolen Neovim config written in Lua.
My goal was to make it unified as much as possible so everything looks similar, keybindings make sense and so on.
It has most of the things one may need. This is a full list of packaged plugins:
- Plugin manager
- LSP, Linting, Formatting
- Autocompletion
- Snippets
- Smart comments and bracket pairs
- File explorer
- Gorgeous colorschemes
- And some miscelanious things
Consider using <leader>w to call WhichKey plugin
Mode | Binding | Description | Module |
---|---|---|---|
Insert | jk | Famouse binding, exit from Insert mode quickly |
Mode | Binding | Description | Module |
---|---|---|---|
Normal | gD | Declaration | LSP |
Normal | gd | definiton | LSP |
Normal | gi | implementation | LSP |
Normal | gr | reference | LSP |
Mainly used for actions that can be semantically described with a few letters
Mode | Binding | Description | Module |
---|---|---|---|
Normal | <leader>h | hover | LSP |
Normal | <leader>rn | rename variable/function/etc. in a buffer | LSP |
Normal | <leader>ca | code actions | LSP |
Normal | <leader>d | diagnostic float window | LSP |
Normal | <leader>dll | diagnostic loclist | LSP |
Normal | <leader>bf | Buffer format | LSP |
Normal | <leader>e | File explorer | |
Normal | <leader>nh | :noh - no highlight |
Mode | Binding | Description | Module |
---|---|---|---|
Normal | <Alt-Left> | Navigate to window at left | |
Normal | <Alt-Right> | Navigate to window at right | |
Normal | <Alt-Up> | Navigate to window at above | |
Normal | <Alt-Down> | Navigate to window at below |
Mode | Binding | Description | Module |
---|---|---|---|
Normal | <Shift-Left> | Navigate to the next buffer | |
Normal | <Shift-Right> | Navigate to the previous buffer |