-
Notifications
You must be signed in to change notification settings - Fork 0
/
keybinds.txt
90 lines (73 loc) · 1.66 KB
/
keybinds.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
M: alt
C: control
<leader>: space
vim spellcheck:
z= open spellcheck menu
[s go back to misspelled word
]s go forward to misspelled word
zg add word to dictionary
zug remove word from dictionary
gc comment line
<C-up> resize window
<C-down> resize window
<C-left> resize window
<C-right> resize window
Treesitter
C-Space initialize selection
C-Space node incremental
C-s scope incremental
M-space node decremental
Treesitter Movement
goto next start
]m @function.outer
]] @class.outer
goto next end
]M @function.outer
][ @class.outer
goto previous start
[m @function.outer
]] @class.outer
goto next start
[M @function.outer
[] @class.outer
swap next
<leader>a @parameter.inner
swap previous
<leader>A @parameter.inner
Telescope
<leader>? find in recently opened files
<leader><space> Find existing buffer
<leader>/ search in buffer
<leader>s/ search in open files
<leader>ss search select
<leader>gf search git files
<leader>sf search files
<leader>sh search help
<leader>sw search current word
<leader>sg search by grep
<leader>sG search by grep on git root
<leader>sd search diagnostics
Telescope menu
<C-x> open file as split
<C-v> open file as vsplit
<C-t> open file as tab
LSP
<leader>rn rename
<leader>ca code action
gd goto definition
gr goto references
gI goto implementation
<leader>D type definition
<leader>ds document symbols
<leader>ws workspace symbols
K hover documentation
<C-k> signature documentation
gD goto declaration
<leader>wa workspace add folder
<leader>wr workspace remove folder
<leader>wl workspace list folders
:Format format current buffer using lsp
Vim default things
zz cursor to middle of screen
zt cursor to top of screen
zb cursor to bottom of screen