feat(nvim): enable incremental ts selection
This commit is contained in:
parent
960a67cc09
commit
7c563f6987
@ -7,6 +7,15 @@ vim.opt.runtimepath:append(treesitter_dir)
|
|||||||
nvim_treesitter.setup({
|
nvim_treesitter.setup({
|
||||||
parser_install_dir = treesitter_dir,
|
parser_install_dir = treesitter_dir,
|
||||||
ensure_installed = "all",
|
ensure_installed = "all",
|
||||||
|
incremental_selection = {
|
||||||
|
enable = true,
|
||||||
|
keymaps = {
|
||||||
|
init_selection = "<CR>",
|
||||||
|
scope_incremental = "<S-CR>",
|
||||||
|
node_incremental = "<CR>",
|
||||||
|
node_decremental = "<BS>",
|
||||||
|
},
|
||||||
|
},
|
||||||
highlight = {
|
highlight = {
|
||||||
enable = true,
|
enable = true,
|
||||||
disable = function(_, buf)
|
disable = function(_, buf)
|
||||||
|
Loading…
Reference in New Issue
Block a user