From e3eec166c0a5065f43fa669a557e1bfab7f20162 Mon Sep 17 00:00:00 2001 From: Michaƫl Ball Date: Fri, 6 Sep 2024 08:55:19 +0100 Subject: Formatting --- neovim/.config/nvim/lua/plugins/nvim_cmp.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'neovim/.config') diff --git a/neovim/.config/nvim/lua/plugins/nvim_cmp.lua b/neovim/.config/nvim/lua/plugins/nvim_cmp.lua index 29ef7b6..f0a4f95 100644 --- a/neovim/.config/nvim/lua/plugins/nvim_cmp.lua +++ b/neovim/.config/nvim/lua/plugins/nvim_cmp.lua @@ -36,7 +36,7 @@ return { 'onsails/lspkind.nvim', }, }, - config = function () + config = function() local cmp = require('cmp') local lspkind = require('lspkind') cmp.setup({ @@ -47,7 +47,7 @@ return { end, }, view = { - entries = {name = 'custom', selection_order = 'near_cursor' } + entries = { name = 'custom', selection_order = 'near_cursor' } }, mapping = cmp.mapping.preset.insert({ [''] = cmp.mapping.scroll_docs(-4), @@ -68,10 +68,10 @@ return { formatting = { format = lspkind.cmp_format({ mode = 'symbol', -- show only symbol annotations - maxwidth = 50, -- prevent the popup from showing more than provided characters (e.g 50 will not show more than 50 characters) - -- can also be a function to dynamically calculate max width such as - -- maxwidth = function() return math.floor(0.45 * vim.o.columns) end, - ellipsis_char = '...', -- when popup menu exceed maxwidth, the truncated part would show ellipsis_char instead (must define maxwidth first) + maxwidth = 50, -- prevent the popup from showing more than provided characters (e.g 50 will not show more than 50 characters) + -- can also be a function to dynamically calculate max width such as + -- maxwidth = function() return math.floor(0.45 * vim.o.columns) end, + ellipsis_char = '...', -- when popup menu exceed maxwidth, the truncated part would show ellipsis_char instead (must define maxwidth first) show_labelDetails = true, -- show labelDetails in menu. Disabled by default }) }, -- cgit v1.2.3