finalized cmp menu colors

This commit is contained in:
Oliver Hartmann 2025-04-03 23:30:31 +02:00
parent 353553c167
commit cdfc208d3a

View File

@ -101,12 +101,18 @@ return {
documentation = { documentation = {
winhighlight = 'Normal:CmpDocumentation' winhighlight = 'Normal:CmpDocumentation'
}, },
completion = {
winhighlight = 'Normal:Pmenu,FloatBorder:Pmenu,Search:None',
col_offset = -3,
side_padding = 0,
},
}, },
formatting = { formatting = {
fields = { 'kind', 'abbr', 'menu' }, fields = { 'kind', 'abbr', 'menu' },
expandable_indicator = false, expandable_indicator = false,
format = function(entry, vim_item) format = function(entry, vim_item)
local kind = require('lspkind').cmp_format({ mode = 'symbol_text', maxwidth = 50 })(entry, vim_item) local kind = require('lspkind').cmp_format({ mode = 'symbol_text', maxwidth = 50, show_labelDetails = true })(
entry, vim_item)
local strings = vim.split(kind.kind, '%s', { trimempty = true }) local strings = vim.split(kind.kind, '%s', { trimempty = true })
kind.kind = ' ' .. (strings[1] or '') .. ' ' kind.kind = ' ' .. (strings[1] or '') .. ' '
kind.menu = ' (' .. (strings[2] or '') .. ')' kind.menu = ' (' .. (strings[2] or '') .. ')'