mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-28 11:40:13 +02:00
fix(ui): Neovim < 0.10
This commit is contained in:
parent
f1ce07510d
commit
afbe2043a7
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ end
|
|||
function M.icon(sign, len)
|
||||
sign = sign or {}
|
||||
len = len or 1
|
||||
local text = vim.fn.strcharpart(sign.text or "", 0, len, false) ---@type string
|
||||
local text = vim.fn.strcharpart(sign.text or "", 0, len) ---@type string
|
||||
text = text .. string.rep(" ", len - vim.fn.strchars(text))
|
||||
return sign.texthl and ("%#" .. sign.texthl .. "#" .. text .. "%*") or text
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue