From 8cdaa5f17034b3448ac9c34e8568b164754b3431 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Fri, 9 Jun 2023 11:38:37 +0100 Subject: [PATCH] Enable treesitter if no on nix, but disable auto_install --- lua/plugins/treesitter.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua index f299331..85705e7 100644 --- a/lua/plugins/treesitter.lua +++ b/lua/plugins/treesitter.lua @@ -1,6 +1,5 @@ return { "nvim-treesitter/nvim-treesitter", - cond = function() return vim.fn.executable "nix" == 1 end, version = false, build = ":TSUpdate", event = { "BufReadPre", "BufNewFile" }, @@ -18,7 +17,7 @@ return { require("nvim-treesitter.configs").setup(opts) end, opts = { - auto_install = true, + auto_install = vim.fn.executable "nix" == 1, highlight = { enable = true, disable = { "fortran" },