Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions nvim/lua/plugins/language.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@ return {
"yaml",
},
},
init = function()
-- Remove stale vim parser from site directory that conflicts with
-- nvim-treesitter managed parsers, causing "Invalid node type 'tab'" error.
-- See: https://github.com/nvim-treesitter/nvim-treesitter/issues/8369
local stale_parser = vim.fn.stdpath("data") .. "/site/parser/vim.so"
local fs = vim.uv or vim.loop
if fs.fs_stat(stale_parser) then
os.remove(stale_parser)
end
end,
},
{
"mason-org/mason.nvim",
Expand Down
Loading