summaryrefslogtreecommitdiff
path: root/neovim
diff options
context:
space:
mode:
authorMichaël Ball <michael.ball@krotosaudio.com>2024-09-06 08:55:19 +0100
committerMichaël Ball <michael.ball@krotosaudio.com>2024-09-06 08:55:19 +0100
commite3eec166c0a5065f43fa669a557e1bfab7f20162 (patch)
tree632463781df5e14de17fb731f4af861c27b1c42b /neovim
parent94a394a557a88bee0a44144ed96b4e45231df441 (diff)
Formatting
Diffstat (limited to 'neovim')
-rw-r--r--neovim/.config/nvim/lua/plugins/nvim_cmp.lua12
1 files changed, 6 insertions, 6 deletions
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({
['<C-b>'] = 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
})
},