Open carloskiki opened 1 year ago
After removing the parser config specifications for tree-sitter, the parser was installed successfully.
Here is what I removed:
vim.filetype.add({extension = {wgsl = "wgsl"}})
-- REMOVED
-- local parser_config = require "nvim-treesitter.parsers".get_parser_configs()
-- parser_config.wgsl = {
-- install_info = {
-- url = "https://github.com/szebniok/tree-sitter-wgsl",
-- files = { "src/parser.c" }
-- },
-- }
require'nvim-treesitter.configs'.setup {
ensure_installed = {"wgsl"},
highlight = {
enable = true
},
incremental_selection = {
enable = true,
keymaps = {
init_selection = "gnn",
node_incremental = "grn",
scope_incremental = "grc",
node_decremental = "grm",
},
},
}
vim.wo.foldmethod = "expr"
vim.wo.foldexpr = "nvim_treesitter#foldexpr()"
vim.o.foldlevelstart = 99 -- do not close folds when a buffer is opened
I am unsure whether this issue is specific to my machine, and if it is more general I would consider adding more detailed information in the README.
Recently, I've had problems with the wgsl parser of tree-sitter.
I tried uninstalling and reinstalling it, but I get this error:
Does anyone have any idea of what is happening?