From ac90ae5b08a34d4c9c702d28f5c7d308f8ab8fe8 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sun, 17 Mar 2024 16:00:13 +0000 Subject: [PATCH] Only install the Treesitter parsers I use --- lib/default.nix | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/lib/default.nix b/lib/default.nix index 36c5fff..20e3264 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -163,7 +163,41 @@ in rec { vimPlugins.nvim-dap-virtual-text # Treesitter - vimPlugins.nvim-treesitter.withAllGrammars + (vimPlugins.nvim-treesitter.withPlugins + (p: [ + p.bash + p.comment + p.css + p.csv + p.dockerfile + p.gitattributes + p.gitignore + p.go + p.html + p.javascript + p.json + p.lua + p.luadoc + p.make + p.markdown + p.markdown_inline + p.nix + p.php + p.phpdoc + p.query + p.rst + p.scss + p.sql + p.terraform + p.tmux + p.twig + p.typescript + p.vim + p.vimdoc + p.vue + p.xml + p.yaml + ])) vimPlugins.nvim-treesitter-context vimPlugins.nvim-treesitter-textobjects