From e91d1e1ce6ede494d54e440a694ed2536d527787 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Wed, 25 Oct 2023 10:49:16 +0200 Subject: [PATCH] feat: configure treesitter incremental selection, remove obsolte settings --- home-manager/neovim/treesitter.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/home-manager/neovim/treesitter.lua b/home-manager/neovim/treesitter.lua index 931c77d..eca7e14 100644 --- a/home-manager/neovim/treesitter.lua +++ b/home-manager/neovim/treesitter.lua @@ -1,14 +1,14 @@ require('nvim-treesitter.configs').setup({ highlight = { enable = true, - additional_vim_regex_highlighting = false }, - indent = { - enable = false, - }, - rainbow = { + incremental_selection = { enable = true, - extended_mode = true, - max_file_lines = nil, + keymaps = { + init_selection = "v", + node_decremental = "<", + node_incremental = ">", + scope_incremental = false, + }, }, })