mirror of
https://github.com/folke/snacks.nvim
synced 2025-12-23 08:47:57 +00:00
fix(statuscolumn): better way of determining open folds. Closes #1445
This commit is contained in:
parent
fa29c6c926
commit
1239fb84bc
1 changed files with 1 additions and 1 deletions
|
|
@ -144,7 +144,7 @@ function M.line_signs(win, buf, lnum)
|
|||
vim.api.nvim_win_call(win, function()
|
||||
if vim.fn.foldclosed(lnum) >= 0 then
|
||||
signs[#signs + 1] = { text = vim.opt.fillchars:get().foldclose or "", texthl = "Folded", type = "fold" }
|
||||
elseif config.folds.open and tostring(vim.treesitter.foldexpr(vim.v.lnum)):sub(1, 1) == ">" then
|
||||
elseif config.folds.open and vim.fn.foldlevel(lnum) > vim.fn.foldlevel(lnum - 1) then
|
||||
signs[#signs + 1] = { text = vim.opt.fillchars:get().foldopen or "", type = "fold" }
|
||||
end
|
||||
end)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue