From ac7f8ef19b645af5afe8f5f8044868a0cf25a620 Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Sat, 28 Sep 2024 15:17:50 +0200 Subject: nixvim: refactor --- common/home/programs/nixvim/plugins/treesitter.nix | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 common/home/programs/nixvim/plugins/treesitter.nix (limited to 'common/home/programs/nixvim/plugins/treesitter.nix') diff --git a/common/home/programs/nixvim/plugins/treesitter.nix b/common/home/programs/nixvim/plugins/treesitter.nix new file mode 100644 index 0000000..3fbd4b6 --- /dev/null +++ b/common/home/programs/nixvim/plugins/treesitter.nix @@ -0,0 +1,24 @@ +{ ... }: +{ + enable = true; + settings = { + auto_install = true; + highlight = { + additional_vim_regex_highlighting = true; + enable = true; + }; + incremental_selection = { + enable = true; + keymaps = { + init_selection = false; + node_decremental = "grm"; + node_incremental = "grn"; + scope_incremental = "grc"; + }; + }; + indent = { + enable = true; + }; + sync_install = false; + }; +} -- cgit v1.2.3-70-g09d2