Christian Clason
Christian Clason
Sure; both the foldexpr and enough treesitter parsers are provided by Neovim itself. In any case (even if a plugin is needed), we require fully reproducible and minimal steps to...
> Enable the nvim-treesitter plugin This could mean so many things. Please, we need _concrete_, **reproducible** steps. This includes a minimal(!) config for `nvim --clean -u test.lua`. (Just to be...
Well, look at _your_ config and remove everything that is not needed to trigger the error (didn't you mention that folding is required?) Right now, there's nothing we can do...
How are _you_ enabling it right now? It's not enabled automatically.
Then treesitter folding is not used, so I'm even more confused by this report.
Please give a _full_ set of steps -- edit your initial description with a `test.lua` we can copy and run with `nvim --clean -u test.lua`.
> In nvim-treesitter, a parser should be detached when filetype changes. Nvim-treesitter does (will) not handle anything parser-related (beyond (un)installing), so no change is needed there.
Please test Neovim nightly. Performance issues with tree-sitter parsing are being actively worked on.
Solution 2 seems to me the easiest to reason about and handle in practice. (Although this doesn't rule out _also_ doing Solution 3.)
> vim.lsp.config("*", { on_attach = function(client, bufnr) end }) That's what `LspAttach` is for.