move highlights to colorscheme, and change cmp style

This commit is contained in:
2023-10-22 18:07:36 -04:00
parent 87aafcd44c
commit a7929fa1c0
5 changed files with 83 additions and 102 deletions

View File

@ -65,28 +65,16 @@ cmp.setup {
}),
window = {
completion = {
winhighlight = "Normal:Pmenu,FloatBorder:Pmenu,Search:None",
col_offset = 0,
side_padding = 0,
border = { ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ' },
winhighlight = "Normal:WinBarNC,FloatBorder:WinBarNC,Search:WinBarNC",
},
documentation = {
border = { ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ' },
winhighlight = "Normal:WinBarNC,FloatBorder:WinBarNC,Search:WinBarNC",
}
},
formatting = {
fields = { "kind", "abbr", "menu" },
format = function(entry, vim_item)
local kind_icons = lspicons
local menu_items = {
buffer = "buffer",
nvim_lsp = "LSP",
luasnip = "luasnip",
nvim_lua = "lua",
calc = "calc",
}
vim_item.kind = string.format(' %s ', kind_icons[vim_item.kind])
vim_item.menu = string.format(' (%s)', menu_items[entry.source.name])
return vim_item
end
view = {
entries = { name = 'custom', selection_order = 'near_cursor' },
},
-- mappings -----------------------------------------------------------------