From a7929fa1c04758a0da28a58d3da195c7b218679b Mon Sep 17 00:00:00 2001 From: Squibid Date: Sun, 22 Oct 2023 18:07:36 -0400 Subject: move highlights to colorscheme, and change cmp style --- after/plugin/cmp.lua | 28 ++++++++-------------------- 1 file changed, 8 insertions(+), 20 deletions(-) (limited to 'after/plugin/cmp.lua') diff --git a/after/plugin/cmp.lua b/after/plugin/cmp.lua index 4dfdfe9..8c7c3a2 100644 --- a/after/plugin/cmp.lua +++ b/after/plugin/cmp.lua @@ -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 ----------------------------------------------------------------- -- cgit v1.2.1