home: vim: document 'commentary' mappings
By using 'which-key'.
This commit is contained in:
parent
2713270378
commit
1408d7735a
1 changed files with 12 additions and 0 deletions
12
home/vim/after/plugin/mappings/commentary.vim
Normal file
12
home/vim/after/plugin/mappings/commentary.vim
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
lua << EOF
|
||||||
|
local wk = require("which-key")
|
||||||
|
|
||||||
|
local keys = {
|
||||||
|
name = "Comment/uncomment",
|
||||||
|
c = "Current line",
|
||||||
|
u = "Uncomment the current and adjacent commented lines",
|
||||||
|
["gc"] = "Uncomment the current and adjacent commented lines",
|
||||||
|
}
|
||||||
|
|
||||||
|
wk.register(keys, { prefix = "gc" })
|
||||||
|
EOF
|
||||||
Loading…
Add table
Add a link
Reference in a new issue