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,
|
extended_mode = true,
|
||||||
max_file_lines = nil,
|
max_file_lines = nil,
|
||||||
},
|
},
|
||||||
--textobjects = {
|
incremental_selection = {
|
||||||
-- enable = true,
|
enable = true,
|
||||||
-- select = {
|
keymaps = {
|
||||||
-- enable = true,
|
init_selection = '<Leader>c',
|
||||||
-- lookahead = true, -- Automatically jump forward to textobj, similar to targets.vim
|
node_incremental = '<Leader>c',
|
||||||
-- keymaps = {
|
scope_incremental = '<Leader>ci',
|
||||||
-- -- You can use the capture groups defined in textobjects.scm
|
node_decremental = '<Leader>cx',
|
||||||
-- ['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',
|
|
||||||
-- },
|
|
||||||
--},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
require 'treesitter-context'.setup {
|
require 'treesitter-context'.setup {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user