move highlights to colorscheme, and change cmp style
This commit is contained in:
@ -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 -----------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user