summaryrefslogtreecommitdiff
path: root/neovim/.config/nvim/lua
diff options
context:
space:
mode:
Diffstat (limited to 'neovim/.config/nvim/lua')
-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
})
},