From d7d9bfcc744e48b6e0be81307934d5cb270bfab3 Mon Sep 17 00:00:00 2001 From: GHOSCHT <31184695+GHOSCHT@users.noreply.github.com> Date: Sat, 30 Dec 2023 12:56:02 +0100 Subject: [PATCH] Install treesitter grammars manually the nix one sucks --- home/features/coding/nvim/default.nix | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/home/features/coding/nvim/default.nix b/home/features/coding/nvim/default.nix index c2d4fad..8062bff 100644 --- a/home/features/coding/nvim/default.nix +++ b/home/features/coding/nvim/default.nix @@ -92,7 +92,28 @@ in { friendly-snippets { - plugin = nvim-treesitter.withAllGrammars; + plugin = nvim-treesitter.withPlugins (p: [ + p.vim + p.bash + p.lua + p.python + p.json + p.java + p.rust + p.cpp + p.css + p.csv + p.dockerfile + p.diff + p.gitignore + p.git_config + p.gitattributes + p.make + p.yaml + p.toml + p.typescript + p.xml + ]); config = builtins.readFile ./plugin/treesitter.lua; type = "lua"; }