summaryrefslogtreecommitdiff
path: root/common/home/programs/nixvim/plugins/treesitter.nix
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2024-09-28 15:17:50 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2024-09-28 15:17:50 +0200
commitac7f8ef19b645af5afe8f5f8044868a0cf25a620 (patch)
tree24096bb105e6a74622418a61a792388f665cf223 /common/home/programs/nixvim/plugins/treesitter.nix
parentfbe7799a38a2dfe139261bb3bdeca6fa96d05145 (diff)
nixvim: refactor
Diffstat (limited to 'common/home/programs/nixvim/plugins/treesitter.nix')
-rw-r--r--common/home/programs/nixvim/plugins/treesitter.nix24
1 files changed, 24 insertions, 0 deletions
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;
+ };
+}