-
|
Hey guys ! local configs = require("nvim-treesitter.configs")
configs.setup({
fold = {
enable = true,
},
ensure_installed = languages,
incremental_selection = {
enable = true,
keymaps = {
init_selection = "<C-space>", -- set to `false` to disable one of the mappings
node_incremental = "<C-space>",
scope_incremental = "<C-s>",
node_decremental = "<bs>",
},
},
textobjects = {
select = {
...
},
},
So I'm just wondering how they should be configured together when using the new version of nvim-treesiter. Thank you for your lights, and for this great plugin! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
|
incremental selection is not supported anymore and you can follow the README for the textobjects. If you really want incremental selection, https://github.com/MeanderingProgrammer/treesitter-modules.nvim this plugin gives you the missing option. |
Beta Was this translation helpful? Give feedback.
-
|
Incremental selection was implemented in neovim core: neovim/neovim@72d3a57 |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the quick answer, |
Beta Was this translation helpful? Give feedback.
incremental selection is not supported anymore and you can follow the README for the textobjects.
If you really want incremental selection, https://github.com/MeanderingProgrammer/treesitter-modules.nvim this plugin gives you the missing option.