feat(ide): kind and kind_icon in completion menu
This commit is contained in:
@@ -42,14 +42,6 @@ return {
|
||||
dep_of = { "nvim-lspconfig" },
|
||||
after = function()
|
||||
require("blink.cmp").setup({
|
||||
completion = {
|
||||
list = {
|
||||
selection = "auto_insert",
|
||||
},
|
||||
},
|
||||
documentation = {
|
||||
auto_show = true,
|
||||
},
|
||||
keymap = {
|
||||
["<C-space>"] = { "show", "show_documentation", "hide_documentation" },
|
||||
["<C-e>"] = { "hide", "fallback" },
|
||||
@@ -79,15 +71,22 @@ return {
|
||||
require("luasnip").jump(direction)
|
||||
end,
|
||||
},
|
||||
sources = {
|
||||
completion = {
|
||||
enabled_providers = {
|
||||
"lsp",
|
||||
"path",
|
||||
"snippets",
|
||||
"buffer",
|
||||
completion = {
|
||||
list = {
|
||||
selection = "auto_insert",
|
||||
},
|
||||
menu = {
|
||||
draw = {
|
||||
padding = { 1, 0 },
|
||||
columns = { { "label", "label_description", gap = 1 }, { "kind_icon", "kind" } },
|
||||
components = {
|
||||
kind_icon = { width = { fill = true } },
|
||||
},
|
||||
},
|
||||
},
|
||||
documentation = {
|
||||
auto_show = true,
|
||||
},
|
||||
},
|
||||
})
|
||||
end,
|
||||
|
||||
Reference in New Issue
Block a user