mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
feat(fold): show number of folded lines in foldtext
This commit is contained in:
parent
a50f92f755
commit
12003a5572
1 changed files with 2 additions and 1 deletions
|
|
@ -78,7 +78,8 @@ function M.foldtext()
|
|||
if not ret or type(ret) == "string" then
|
||||
ret = { { vim.api.nvim_buf_get_lines(0, vim.v.lnum - 1, vim.v.lnum, false)[1], {} } }
|
||||
end
|
||||
table.insert(ret, { " " .. require("lazyvim.config").icons.misc.dots })
|
||||
local num_lines = " [" .. vim.v.foldend - vim.v.foldstart .. " lines]"
|
||||
table.insert(ret, { " " .. require("lazyvim.config").icons.misc.dots .. num_lines, { "CursorColumn" }})
|
||||
|
||||
if not vim.treesitter.foldtext then
|
||||
return table.concat(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue