feat(nvim): enable incremental ts selection

This commit is contained in:
Price Hiller 2023-06-05 00:19:38 -05:00
parent 960a67cc09
commit 7c563f6987
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8

View File

@ -7,6 +7,15 @@ vim.opt.runtimepath:append(treesitter_dir)
nvim_treesitter.setup({
parser_install_dir = treesitter_dir,
ensure_installed = "all",
incremental_selection = {
enable = true,
keymaps = {
init_selection = "<CR>",
scope_incremental = "<S-CR>",
node_incremental = "<CR>",
node_decremental = "<BS>",
},
},
highlight = {
enable = true,
disable = function(_, buf)