From db772fad6f21e5ea4974bd989002cf33b69b1801 Mon Sep 17 00:00:00 2001 From: "Gustavo L de Mello (Guz)" Date: Sun, 8 Dec 2024 10:57:05 -0300 Subject: [PATCH] feat(ide): kind and kind_icon in completion menu --- lua/dot013/plugins/ide.lua | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/lua/dot013/plugins/ide.lua b/lua/dot013/plugins/ide.lua index 46fa44d..865be33 100644 --- a/lua/dot013/plugins/ide.lua +++ b/lua/dot013/plugins/ide.lua @@ -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 = { [""] = { "show", "show_documentation", "hide_documentation" }, [""] = { "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,