From 8faa242f21648e52a6bbdfa803fd4ea1b0e347e0 Mon Sep 17 00:00:00 2001 From: seth Date: Mon, 18 Dec 2023 01:28:42 -0500 Subject: port to nixvim --- config/plugins/treesitter.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 config/plugins/treesitter.nix (limited to 'config/plugins/treesitter.nix') diff --git a/config/plugins/treesitter.nix b/config/plugins/treesitter.nix new file mode 100644 index 0000000..047bd17 --- /dev/null +++ b/config/plugins/treesitter.nix @@ -0,0 +1,25 @@ +{ + pkgs, + self, + ... +}: { + extraPlugins = [pkgs.vimPlugins.vim-just]; + + plugins = { + treesitter = { + enable = true; + + grammarPackages = pkgs.vimPlugins.nvim-treesitter.allGrammars ++ [self.tree-sitter-just]; + + indent = true; + nixvimInjections = true; + }; + + ts-context-commentstring = { + enable = true; + disableAutoInitialization = true; + }; + + ts-autotag.enable = true; + }; +} -- cgit v1.2.3