home: vim: add 'tree-sitter' moves

This commit is contained in:
Bruno BELANYI 2022-02-26 19:45:09 +01:00
parent 063686433f
commit 8ad5327c89

View file

@ -26,6 +26,27 @@ ts_config.setup({
["ak"] = "@comment.outer",
},
},
move = {
enable = true,
-- Add to jump list
set_jumps = true,
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_previous_end = {
["[M"] = "@function.outer",
["[]"] = "@class.outer",
},
},
},
})
EOF