-
Notifications
You must be signed in to change notification settings - Fork 31
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
fix(ui): treesitter foldexpr calculate not work #249
fix(ui): treesitter foldexpr calculate not work #249
Conversation
When setup ``` lua vim.opt.foldmethod = 'expr' vim.opt.foldexpr = 'v:lua.vim.treesitter.foldexpr()' ``` the fold level per lines not getting correct result, this means that `zc` `zo` will not work in result buffer. this commit fix it. Related mistweaverco#128
Do we really need that replacement of buffer with this fix anymore? 😲 Would be awesome if this could be removed as well then 👌🏾👍🏾💪🏾 |
Seems like we still need that replace buffer 🤷 |
It's already merged into main. I never said we don't need this. I was just thinking if we still need to replace the buffer everytime :) |
Just saw it merged when I posting the previous comment. Yes I think we need it :). Thanks for the explain. |
When setup ``` lua vim.opt.foldmethod = 'expr' vim.opt.foldexpr = 'v:lua.vim.treesitter.foldexpr()' ``` the fold level per lines not getting correct result, this means that `zc` `zo` will not work in result buffer. this commit fix it. Related mistweaverco#128
When setup ``` lua vim.opt.foldmethod = 'expr' vim.opt.foldexpr = 'v:lua.vim.treesitter.foldexpr()' ``` the fold level per lines not getting correct result, this means that `zc` `zo` will not work in result buffer. this commit fix it. Related mistweaverco#128
When setup
the fold level per lines not getting correct result, this means that
zc
zo
will not work in result buffer. this commit fix it.Related #128