From 27f65048d2324b81e174fa9bdcee95975a6ff187 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Fri, 10 Jan 2025 18:37:21 +0100 Subject: [PATCH] nvim/lua/user/plugins/editor/autocomplete.lua: add colorful-menu --- nvim/lua/user/plugins/editor/autocomplete.lua | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/nvim/lua/user/plugins/editor/autocomplete.lua b/nvim/lua/user/plugins/editor/autocomplete.lua index c42279f..071c453 100644 --- a/nvim/lua/user/plugins/editor/autocomplete.lua +++ b/nvim/lua/user/plugins/editor/autocomplete.lua @@ -6,6 +6,7 @@ return { version = "*", build = 'cargo build --release', dependencies = { + { "xzbdmw/colorful-menu.nvim" }, { 'L3MON4D3/LuaSnip', version = 'v2.*' }, }, opts = { @@ -70,7 +71,17 @@ return { draw = { columns = { { "kind_icon" }, - { "label", "label_description", "source_name", gap = 1 }, + { "label", "source_name", gap = 1 }, + }, + components = { + label = { + text = function(ctx) + return require("colorful-menu").blink_components_text(ctx) + end, + highlight = function(ctx) + return require("colorful-menu").blink_components_highlight(ctx) + end, + }, }, } },