diff --git a/.config/nvim/lua/my/completion.lua b/.config/nvim/lua/my/completion.lua index 4240d2c..c2820d4 100644 --- a/.config/nvim/lua/my/completion.lua +++ b/.config/nvim/lua/my/completion.lua @@ -16,7 +16,7 @@ if cmp and luasnip then formatting = { format = lspkind.cmp_format({ mode = "symbol_text", - maxwidth = vim.o.columns / 2, + maxwidth = math.floor(vim.o.columns / 2), ellipsis_char = '…', menu = ({ buffer = "[Buffer]",