mirror of
https://github.com/materusPL/nixos-config
synced 2026-04-19 03:17:21 +02:00
Neovim: Fix treesitter on non-nix
This commit is contained in:
parent
3afafba3ce
commit
9292f61a3f
@ -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',
|
||||
@ -139,6 +139,7 @@ if vim.fn.executable("git") == 1 then
|
||||
})
|
||||
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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user