59 lines
1.0 KiB
Markdown
59 lines
1.0 KiB
Markdown
# Keybinds
|
|
|
|
## Lsp
|
|
|
|
- K : hover documentation
|
|
- grr : go to reference
|
|
- gri : go to impl
|
|
- grd : goto defn
|
|
- gO : open symbolds
|
|
- gW : open worksapce symbolds
|
|
- grt : goto type defn
|
|
|
|
## Tabs
|
|
|
|
Pane movement:
|
|
- C-h : move to left pane
|
|
- C-j : move to lower pane
|
|
- C-k : move to upper pane
|
|
- C-l : move to right pane
|
|
|
|
Pane management:
|
|
- C-q : close current pane
|
|
- C-\ : vertical split
|
|
- C-S-\ : horizontal split
|
|
- <leader>po : keep current pane only
|
|
|
|
Tab management:
|
|
- <leader>tn : new tab
|
|
- <leader>tq : close tab
|
|
- <leader>to : keep current tab only
|
|
- <leader>th : previous tab
|
|
- <leader>tl : next tab
|
|
|
|
Built-in tab cycling also works:
|
|
- gt : next tab
|
|
- gT : previous tab
|
|
|
|
Neo-tree:
|
|
- C-n : toggle Neo-tree
|
|
|
|
## Autocompletes
|
|
|
|
within insert mode, it's supported via blink
|
|
C-y to accept
|
|
C-space to open completions menu
|
|
C-n/p to move up and down
|
|
C-k to show signature help
|
|
|
|
## Fugutive workflow
|
|
|
|
:G
|
|
use - to stage
|
|
use cc to commit
|
|
write a message and then :wq
|
|
|
|
Leader shortcuts:
|
|
- <leader>gd : vertical git diff
|
|
- <leader>gc : open fugitive git status
|