New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add treesitter provider #6
Comments
I would love to have treesitter, because I don't have a language server for all languages, but usually a tree parser. |
treesitter provider may come this weekend.
|
I'm using treesitter folding since a long time already and can't complain. And definitely not about the performance. 🤷♂️ |
No conflict, if treesitter provider is done, you can set it |
The latter is what I have right now. 😬 |
should work, this feature is easy and low priority, I am lazy to write document for now. If the doc is done, will close this issue. (writing doc is hardest part for this feature) local ftMap = {
vim = 'indent',
python = {'indent'},
git = ''
}
require('ufo').setup({
provider_selector = function(bufnr, filetype)
-- return a string type use internal providers
-- return a string in a table like a string type
-- return empty string '' will disable any providers
-- return `nil` will use default value {'lsp', 'indent'}
return ftMap[filetype] or {'treesitter', 'indent'}
end
})
The STW(stop the world) perf: Why perf of
If you want to reduce the STW, converting |
Great. Thank you very much! |
doc has been updated. |
Feature description
Someone loves treesitter, but I think is fragile for all languages and low perf compared with
lsp
andindent
providers.Low priority for this feature.
Describe the solution you'd like
borrow code from nvim-treesitter and transform the
expr
format to lsp foldingrange format formanual
.Additional context
No response
The text was updated successfully, but these errors were encountered: