home: vim: document 'treesitter-textobjects' maps
By using 'which-key'.
This commit is contained in:
parent
b7b3387df7
commit
d26b9f2537
17
home/vim/after/plugin/mappings/tree-sitter-textobjects.vim
Normal file
17
home/vim/after/plugin/mappings/tree-sitter-textobjects.vim
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
lua << EOF
|
||||||
|
local wk = require("which-key")
|
||||||
|
|
||||||
|
local keys = {
|
||||||
|
["aa"] = "a parameter",
|
||||||
|
["ia"] = "inner parameter",
|
||||||
|
["ab"] = "a block",
|
||||||
|
["ib"] = "inner block",
|
||||||
|
["ac"] = "a class",
|
||||||
|
["ic"] = "inner class",
|
||||||
|
["af"] = "a function",
|
||||||
|
["if"] = "inner function",
|
||||||
|
["ak"] = "a comment",
|
||||||
|
}
|
||||||
|
|
||||||
|
wk.register(keys, { mode = "o" })
|
||||||
|
EOF
|
Loading…
Reference in a new issue