fix(nvim): stop treesitter parser drift from local site installs
Force nvim-treesitter to avoid startup parser installs and rely on Nix-provided grammars only, preventing stale ~/.local/share/nvim/site/parser .so files from causing query/parser mismatches (e.g. vim "tab" node errors on ":").
This commit is contained in:
parent
c5abace3d9
commit
05d0920595
2 changed files with 7 additions and 6 deletions
|
|
@ -1,11 +1,10 @@
|
|||
return {
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
opts = {
|
||||
auto_install = false,
|
||||
sync_install = false,
|
||||
ensure_installed = {},
|
||||
parser_install_dir = vim.fs.joinpath(vim.fn.stdpath('data'), 'site'),
|
||||
},
|
||||
opts = function(_, opts)
|
||||
opts.auto_install = false
|
||||
opts.sync_install = false
|
||||
opts.ensure_installed = {}
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue