From 88d5657cf803051f4213459aed1cf905855b970c Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Thu, 4 Dec 2025 02:20:29 +0100 Subject: [PATCH] fix: don't autoinstall treesitter grammars when using 'nixCats' --- dots/.config/nvim/after/plugin/treesitter.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dots/.config/nvim/after/plugin/treesitter.lua b/dots/.config/nvim/after/plugin/treesitter.lua index 73f002e..249e741 100644 --- a/dots/.config/nvim/after/plugin/treesitter.lua +++ b/dots/.config/nvim/after/plugin/treesitter.lua @@ -4,6 +4,9 @@ local keymap = vim.keymap local opt = vim.opt local treesitter_configs = require("nvim-treesitter.configs") +local nixCatsUtils = require("nixCatsUtils") +local is_nix = nixCatsUtils.isNixCats + treesitter_configs.setup({ -- Basically added what I might need from the docs -- @@ -86,7 +89,7 @@ treesitter_configs.setup({ enable = true, }, sync_install = false, - auto_install = true, + auto_install = not is_nix, ignore_install = {}, modules = {}, textobjects = {