refactor(nvim): use "..." for folded text
This commit is contained in:
parent
ae41262e39
commit
803b07ee70
@ -84,7 +84,7 @@ return {
|
|||||||
-- Show numbers for fold text
|
-- Show numbers for fold text
|
||||||
local handler = function(virtText, lnum, endLnum, width, truncate)
|
local handler = function(virtText, lnum, endLnum, width, truncate)
|
||||||
local newVirtText = {}
|
local newVirtText = {}
|
||||||
local suffix = (" {...} %d "):format(endLnum - lnum)
|
local suffix = ("... %d "):format(endLnum - lnum)
|
||||||
local sufWidth = vim.fn.strdisplaywidth(suffix)
|
local sufWidth = vim.fn.strdisplaywidth(suffix)
|
||||||
local targetWidth = width - sufWidth
|
local targetWidth = width - sufWidth
|
||||||
local curWidth = 0
|
local curWidth = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user