Closed gbrlsnchs closed 2 years ago
main
provider may throw UfoFallbackException
error to wake up fallback
provider. If you want to use lsp->treesitter->indent
chain, you must add the customized provider yourself. ufo has given an example.
Never consider adding this example to README because I haven't seen a fallback chain for a client to request servers that I think it is fragile.
edit: example is changed
Feature description
I've seen in the examples that you can either use LSP plus regular fallback or tree-sitter plus regular fallback, but can you use LSP when available, then tree-sitter as the fallback? Some filetypes don't have such LSP support but do have tree-sitter support.
Describe the solution you'd like
Use LSP provider if available, otherwise fall back to tree-sitter provider and only if none is available, then fall back to the default one.
Additional context
No response