refactor(nvim): use "..." for folded text

This commit is contained in:
Price Hiller 2024-01-21 01:51:16 -06:00
parent ae41262e39
commit 803b07ee70
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8

View File

@ -84,7 +84,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