From 9292f61a3f94ab902889b1255f350c90c650bced Mon Sep 17 00:00:00 2001 From: materus Date: Sat, 4 Apr 2026 07:54:46 +0200 Subject: [PATCH] Neovim: Fix treesitter on non-nix --- config/editor/neovim/lua/materus/init.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config/editor/neovim/lua/materus/init.lua b/config/editor/neovim/lua/materus/init.lua index 69a7434..4f8edac 100644 --- a/config/editor/neovim/lua/materus/init.lua +++ b/config/editor/neovim/lua/materus/init.lua @@ -130,7 +130,7 @@ if vim.fn.executable("git") == 1 then }]] } - require("lazy").setup(plugins, opts) + if vim.fn.executable("tree-sitter") == 1 and MATERUS.NIXOS ~= 1 then table.insert(plugins, { 'nvim-treesitter/nvim-treesitter', @@ -138,7 +138,8 @@ if vim.fn.executable("git") == 1 then build = ':TSUpdate' }) end - + + require("lazy").setup(plugins, opts) if vim.fn.executable("tree-sitter") == 1 and MATERUS.NIXOS ~= 1 then require('nvim-treesitter').setup { -- Directory to install parsers and queries to (prepended to `runtimepath` to have priority)