Neovim: Fix treesitter on non-nix

This commit is contained in:
Mateusz Słodkowicz 2026-04-04 07:54:46 +02:00
parent 3afafba3ce
commit 9292f61a3f
Signed by: materus
SSH Key Fingerprint: SHA256:rzVduzTiiszuYfLPYD0SDZV+g8lxhpcRgpbOZA1X0Uo

View File

@ -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 if vim.fn.executable("tree-sitter") == 1 and MATERUS.NIXOS ~= 1 then
table.insert(plugins, { table.insert(plugins, {
'nvim-treesitter/nvim-treesitter', 'nvim-treesitter/nvim-treesitter',
@ -139,6 +139,7 @@ if vim.fn.executable("git") == 1 then
}) })
end end
require("lazy").setup(plugins, opts)
if vim.fn.executable("tree-sitter") == 1 and MATERUS.NIXOS ~= 1 then if vim.fn.executable("tree-sitter") == 1 and MATERUS.NIXOS ~= 1 then
require('nvim-treesitter').setup { require('nvim-treesitter').setup {
-- Directory to install parsers and queries to (prepended to `runtimepath` to have priority) -- Directory to install parsers and queries to (prepended to `runtimepath` to have priority)