feat(neovim): style completion windows

main
mandlm 2022-08-23 08:03:33 +02:00
parent 5d8f979b09
commit 13105bbe3a
Signed by: mandlm
GPG Key ID: 4AA25D647AA54CC7
1 changed files with 19 additions and 1 deletions

View File

@ -50,7 +50,25 @@ cmp.setup({
end end
end, { "i", "s" }), end, { "i", "s" }),
}), }),
experimental = { ghost_text = true } experimental = { ghost_text = true },
window = {
completion = cmp.config.window.bordered(),
documentation = cmp.config.window.bordered(),
},
formatting = {
fields = { "menu", "abbr", "kind" },
format = function(entry, item)
local menu_icon = {
nvim_lsp = "λ",
luasnip = "",
buffer = "Ω",
path = "🖿",
}
item.menu = menu_icon[entry.source.name]
return item
end,
},
}) })
-- `/` cmdline setup. -- `/` cmdline setup.