Closed edward-s closed 2 years ago
can't reproduce, please provide min.lua
I guess you set
provider_selector = function(bufnr, filetype, buftype)
return {'lsp', 'treesitter'}
end,
provider_selector
return main
and fallback
provider, not a provider chain.
lsp
and treesitter
are main
providers, fallback
provider is only indent
for now.
provider_selector = function()
return { "treesitter", "indent" }
end
works for me, thanks!
Neovim version (nvim -v | head -n1)
0.8 nightly
Operating system/version
macOS 12
How to reproduce the issue
Plugin and fold works great for common file types (javascript, json, html etc)
but, on opening a file of a uncommon/unknown extension (i.e:
.huskyrc
,.dockerignore
), it immediately errors out with the message belowExpected behavior
I don't expect the fold to work on these files, but at least the plugin should not throw error
Actual behavior