From 84ae1a07784dc626db6a8c97de6a57248c8cf56e Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sun, 24 Sep 2023 10:29:41 -0500 Subject: [PATCH] feat(nvim): improve nvim-ufo folded display --- dots/.config/nvim/lua/plugins/configs/nvim-ufo.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dots/.config/nvim/lua/plugins/configs/nvim-ufo.lua b/dots/.config/nvim/lua/plugins/configs/nvim-ufo.lua index 312bc1a6..f050a77f 100644 --- a/dots/.config/nvim/lua/plugins/configs/nvim-ufo.lua +++ b/dots/.config/nvim/lua/plugins/configs/nvim-ufo.lua @@ -12,7 +12,7 @@ return { -- Show numbers for fold text local handler = function(virtText, lnum, endLnum, width, truncate) local newVirtText = {} - local suffix = (" 󰁂 %d "):format(endLnum - lnum) + local suffix = (" {...} 󰁂 %d "):format(endLnum - lnum) local sufWidth = vim.fn.strdisplaywidth(suffix) local targetWidth = width - sufWidth local curWidth = 0 @@ -38,13 +38,12 @@ return { return newVirtText end - local ft_options = { norg = "" } + local ft_options = { norg = "", octo = "" } return { provider_selector = function(_, filetype, _) return ft_options[filetype] or { "treesitter", "indent" } end, fold_virt_text_handler = handler, - disabled = { "norg" }, } end, },