home: vim: add 'tree-sitter' moves

This commit is contained in:
Bruno BELANYI 2022-02-26 19:45:09 +01:00
parent d26b9f2537
commit bd5a15ebe7

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