From 89fe11a95f25cabb0119d227a7c793b6375f821e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20B=C3=B6hme?= Date: Sat, 26 Oct 2024 17:04:37 +0200 Subject: [PATCH] feat(nvim): add incremental selection in ts --- modules/programs/nvim/new_plugins/treesitter.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/programs/nvim/new_plugins/treesitter.nix b/modules/programs/nvim/new_plugins/treesitter.nix index 6ccb255..f0409fc 100644 --- a/modules/programs/nvim/new_plugins/treesitter.nix +++ b/modules/programs/nvim/new_plugins/treesitter.nix @@ -11,6 +11,12 @@ in nixvimInjections = true; settings.indent.enable = true; settings.highlight.enable = true; + settings.incremental_selection = { + enable = true; + keymaps.init_selection = "gn"; + keymaps.node_decremental = "gp"; + keymaps.node_incremental = "gn"; + }; }; performance.combinePlugins.standalonePlugins = [ "nvim-treesitter"