feat: nvim: treesitter: enable incremental selection
This commit is contained in:
parent
f509a2ba87
commit
f8d9064a6d
@ -320,31 +320,15 @@ require('nvim-treesitter.configs').setup {
|
||||
extended_mode = true,
|
||||
max_file_lines = nil,
|
||||
},
|
||||
--textobjects = {
|
||||
-- enable = true,
|
||||
-- select = {
|
||||
-- enable = true,
|
||||
-- lookahead = true, -- Automatically jump forward to textobj, similar to targets.vim
|
||||
-- keymaps = {
|
||||
-- -- You can use the capture groups defined in textobjects.scm
|
||||
-- ['aa'] = '@parameter.outer',
|
||||
-- ['ia'] = '@parameter.inner',
|
||||
-- ['af'] = '@function.outer',
|
||||
-- ['if'] = '@function.inner',
|
||||
-- ['ac'] = '@class.outer',
|
||||
-- ['ic'] = '@class.inner',
|
||||
-- },
|
||||
-- },
|
||||
--},
|
||||
--incremental_selection = {
|
||||
-- enable = true,
|
||||
-- keymaps = {
|
||||
-- init_selection = '<Leader>c',
|
||||
-- node_incremental = '<Leader>c',
|
||||
-- scope_incremental = '<Leader>ci',
|
||||
-- node_decremental = '<Leader>cx',
|
||||
-- },
|
||||
--},
|
||||
incremental_selection = {
|
||||
enable = true,
|
||||
keymaps = {
|
||||
init_selection = '<Leader>c',
|
||||
node_incremental = '<Leader>c',
|
||||
scope_incremental = '<Leader>ci',
|
||||
node_decremental = '<Leader>cx',
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
require 'treesitter-context'.setup {
|
||||
|
Loading…
x
Reference in New Issue
Block a user