home: vim: document 'commentary' mappings
By using 'which-key'.
This commit is contained in:
parent
416a4ca0d6
commit
bbc47b6683
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…
Reference in a new issue