mirror of
https://github.com/pnx/dotfiles
synced 2026-06-18 20:10:03 +02:00
nvim/lua/user/plugins/editor/autocomplete.lua: add colorful-menu
This commit is contained in:
parent
7ee601a110
commit
27f65048d2
1 changed files with 12 additions and 1 deletions
|
|
@ -6,6 +6,7 @@ return {
|
||||||
version = "*",
|
version = "*",
|
||||||
build = 'cargo build --release',
|
build = 'cargo build --release',
|
||||||
dependencies = {
|
dependencies = {
|
||||||
|
{ "xzbdmw/colorful-menu.nvim" },
|
||||||
{ 'L3MON4D3/LuaSnip', version = 'v2.*' },
|
{ 'L3MON4D3/LuaSnip', version = 'v2.*' },
|
||||||
},
|
},
|
||||||
opts = {
|
opts = {
|
||||||
|
|
@ -70,7 +71,17 @@ return {
|
||||||
draw = {
|
draw = {
|
||||||
columns = {
|
columns = {
|
||||||
{ "kind_icon" },
|
{ "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,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue