From 25d2639897057f19c1ca4a46d9cc8fab55ff261e Mon Sep 17 00:00:00 2001 From: EsVagy42 Date: Sun, 8 Mar 2026 13:47:35 +0100 Subject: [PATCH] Added ts-autotag and changed treesitter config --- config/default.nix | 1 + config/treesitter-context.nix | 12 ++++++++---- config/treesitter.nix | 31 ++++++++++++++++++++++++++++++- config/ts-autotag.nix | 5 +++++ 4 files changed, 44 insertions(+), 5 deletions(-) create mode 100644 config/ts-autotag.nix diff --git a/config/default.nix b/config/default.nix index bb6dfe3..f6b393e 100644 --- a/config/default.nix +++ b/config/default.nix @@ -15,6 +15,7 @@ ./bufferline.nix ./ts-comments.nix ./flash.nix + ./ts-autotag.nix ]; opts = { number = true; diff --git a/config/treesitter-context.nix b/config/treesitter-context.nix index 3e05c00..9fcc04a 100644 --- a/config/treesitter-context.nix +++ b/config/treesitter-context.nix @@ -1,4 +1,8 @@ -{ plugins = { treesitter-context = { - enable = true; - settings.zindex = 5; -}; }; } +{ + plugins = { + treesitter-context = { + enable = true; + settings.zindex = 5; + }; + }; +} diff --git a/config/treesitter.nix b/config/treesitter.nix index d3c0645..9565a87 100644 --- a/config/treesitter.nix +++ b/config/treesitter.nix @@ -2,7 +2,36 @@ plugins = { treesitter = { enable = true; - settings = { highlight.enable = true; }; + settings = { + highlight.enable = true; + indent.enable = true; + folds.enable = true; + ensure_installed = [ + "bash" + "c" + "diff" + "html" + "javascript" + "jsdoc" + "json" + "lua" + "luadoc" + "luap" + "markdown" + "markdown_inline" + "printf" + "python" + "query" + "regex" + "toml" + "tsx" + "typescript" + "vim" + "vimdoc" + "xml" + "yaml" + ]; + }; }; }; } diff --git a/config/ts-autotag.nix b/config/ts-autotag.nix new file mode 100644 index 0000000..9fa6d84 --- /dev/null +++ b/config/ts-autotag.nix @@ -0,0 +1,5 @@ +{ + plugins.ts-autotag = { + enable = true; + }; +}