Open net opened 2 months ago
With
vim.opt.foldnestmax = 1
the UFO Treesitter provider
provider_selector = function(bufnr, filetype, buftype) return { 'treesitter' } end,
does not respect foldnestmax, while disabling UFO providers and using
foldnestmax
provider_selector = function(bufnr, filetype, buftype) return '' end, ... vim.opt.foldmethod = 'expr' vim.opt.foldexpr = 'nvim_treesitter#foldexpr()'
does.
See: https://neovim.io/doc/user/options.html#'foldnestmax'
The UFO Treesitter provider should respect foldnestmax.
No response
Feature description
With
the UFO Treesitter provider
does not respect
foldnestmax
, while disabling UFO providers and usingdoes.
See: https://neovim.io/doc/user/options.html#'foldnestmax'
Describe the solution you'd like
The UFO Treesitter provider should respect foldnestmax.
Additional context
No response