mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
feat(cmp): use ellipsis char instead of dots
This commit is contained in:
parent
51ea8c4eaf
commit
14ec7dbab8
1 changed files with 2 additions and 2 deletions
|
|
@ -75,10 +75,10 @@ return {
|
|||
-- max content width. We subtract 3 from the max content width
|
||||
-- to account for the "..." that will be appended to it.
|
||||
if item.menu and #item.abbr > (max_content_width * 0.7) then
|
||||
item.abbr = vim.fn.strcharpart(item.abbr, 0, math.floor(max_content_width * 0.7) - 3) .. "..."
|
||||
item.abbr = vim.fn.strcharpart(item.abbr, 0, math.floor(max_content_width * 0.7) - 3) .. "…"
|
||||
end
|
||||
if item.menu and #item.menu > (max_content_width * 0.7) then
|
||||
item.menu = vim.fn.strcharpart(item.menu, 0, math.floor(max_content_width * 0.7) - 3) .. "..."
|
||||
item.menu = vim.fn.strcharpart(item.menu, 0, math.floor(max_content_width * 0.7) - 3) .. "…"
|
||||
end
|
||||
|
||||
return item
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue