My personal Neovim configuration files.
- Neovim
- Lazygit - The only graphical git interface you'll ever need
- Ripgrep - For fast search
- gh - For nice GitHub integrations (e.g. PR list, issue list, reviews, etc)
- (Optional) Fzf - For ludicrous fast fuzzy search
- Backup your current nvim configuration files
mv ~/.config/nvim ~/.config/nvim.bak
- Clone this repository
git clone https://github.com/mikesposito/nvim ~/.config/nvim
- Open nvim and wait for the plugins to be installed
nvim
The default editor preferences can be found here:
lua/custom/preferences.lua
: General editor preferenceslua/custom/keymaps.lua
: Key bindings
You can add any custom configuration in the lua/custom
folder, so you can keep pulling updates from this repository without conflicts.
WIP: List to be completed
Key | Action |
---|---|
gd |
Goto definition |
gr |
Goto references |
gi |
Goto implementation |
gD |
Goto type definition |
Key | Action |
---|---|
Ds |
Document signature |
Dy |
Document symbols |
gD |
Document hover |
Key | Action |
---|---|
<space>ca |
Show available code actions |
<space>cr |
Rename code |
<space>cs |
Swap code |
Key | Action |
---|---|
<space>dt |
Toggle Debug UI |
<space>do |
Open diagnostic |
<space>dl |
Diagnostic list |
<space>d[ |
Next diagnostic message |
<space>d] |
Previous diagnostic message |
<space>dc |
Start/Continue Debug |
<space>db |
Toggle bearkpoint |
<space>dsi |
Step into |
<space>dso |
Step over |
<space>dsO |
Step out |
Key | Action |
---|---|
<space>e |
Toggle file explorer column |
Key | Action |
---|---|
<space>gp |
Git pull |
<space>gP |
Git push |
<space>gg |
Open lazygit |
<space>gd |
Show diff since index |
<space>gD |
Show diff since last commit |
<space>ghs |
Stage hunk |
<space>ghr |
Reset hunk |
<space>ghS |
Stage buffer |
<space>ghR |
Reset buffer |
<space>ghu |
Undo stage |
<space>ghp |
Preview hunk |
<space>ghb |
Show line blame |
<space>gtb |
Toggle blame |
<space>gtd |
Toggle show deleted |