This directory contains the plugin and user configuration files used by NeoVim to manage and install plugins. The vim
directory contains standard .vimrc and other settings files for core vim.
First, make the changes necessary to the plugin configurations (adding dependencies, changing startup scripts, etc)
Next, run :PackerSync
; make sure all of the new changes are synchronized correctly.
Then, create a snapshot of the current packer configuration. :PackerSnapshot <filename>
. This will create a snapshot file inside of nvim/snapshots
Lastly, update the snapshot configuration inside of nvim/lua/user/plugins.lua
to point to the new filename. This locks the plugin versions being used until the next time a synchronize and snapshot is run.
Leader character: ,
n
- Normal modei
- Insert mode
Mode | Shortcut | Effect | ||
---|---|---|---|---|
General | ||||
n |
zz |
Center cursor | ||
n |
z. |
Center cursor, move cursor to front of line | ||
n |
#gg |
Go to line # | ||
n |
G |
Go to last line | ||
n |
<leader>rn |
Rename symbol under cursor | ||
n |
:%s/<find>/<replace>/gc |
Globally confirm replacement of <find> with <replace> . Omit c to skip confirmation, omit % to only replace once |
||
n |
<C-O> |
Jump back to previous location (eg. after going to a function definition) | ||
n |
<C-I>/<Tab> |
Jump forward location (eg. after going back with <C-O> ) |
||
Coc | ||||
i |
<cr> |
Accept suggestion | ||
i |
<c-j> |
Trigger snippets | ||
i |
<c-space> |
Trigger completion list | ||
n |
[g |
Previous diagnostics | ||
n |
]g |
Next diagnostics | ||
n |
gd |
Go to definition of symbol | ||
n |
gy |
Go to type definition of symbol | ||
n |
gi |
Go to implementation of symbol | ||
n |
gr |
Go to references of symbol | ||
n |
K |
Show documentation of symbol | ||
Mason | ||||
Attached on a buffer load for each language server | ||||
n |
gD |
Go to declaration of symbol | ||
n |
gd |
Go to definition of symbol | ||
n |
gi |
Go to implementation of symbol | ||
n |
gr |
Go to references of symbol | ||
n |
K |
Show symbol information | ||
n |
<C-k> |
Show signature help for symbol | ||
Rust-specific | ||||
n |
<C-space> |
Trigger hover actions | ||
n |
<leader>a |
Trigger code action group | ||
Telescope | ||||
n |
<leader>ff |
Find file with browser | ||
n |
<leader>fg |
Find file with grep (having RipGrep installed is recommended) | ||
n |
<leader>fb |
Browse open buffers | ||
n |
<leader>fh |
Browse help | ||
Tree | ||||
n |
<leader>e |
Open/close tree browser | ||
n |
f |
Filter files | ||
Mason | ||||
n |
:Mason |
Open Mason plugin browser | ||
Packer | ||||
n |
:PackerSync |
Update cached Packer configuration | ||
n |
:PackerSnapshot [name] |
Add new snapshot called [name] |
||
Dap-UI | ||||
n |
<cr> |
Expand | ||
n |
o |
Open | ||
n |
d |
Remove | ||
n |
e |
Edit | ||
n |
r |
Repl | ||
n |
t |
Toggle | ||
Treesitter | ||||
n |
<leader>J |
Function.outer | ||
n |
<leader>Q |
Class.outer | ||
ToggleTerm | ||||
n |
<c-\> |
Open/close terminal | ||
CMP | ||||
n |
<C-b> |
Scroll docs up | ||
n |
<C-f> |
Scroll docs down | ||
n |
<C-Space> |
Trigger completions | ||
n |
<C-e> |
Close completions | ||
n |
<CR> |
Accept currently selected completion |