From 14ec7dbab84a388b7a0b61b607bec22d9494c60e Mon Sep 17 00:00:00 2001 From: Iordanis Petkakis <12776461+dpetka2001@users.noreply.github.com> Date: Sun, 30 Jun 2024 21:24:46 +0300 Subject: [PATCH] feat(cmp): use ellipsis char instead of dots --- lua/lazyvim/plugins/coding.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/lazyvim/plugins/coding.lua b/lua/lazyvim/plugins/coding.lua index 665daeea..cce6881d 100644 --- a/lua/lazyvim/plugins/coding.lua +++ b/lua/lazyvim/plugins/coding.lua @@ -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