summaryrefslogtreecommitdiffstats
path: root/after/plugin
diff options
context:
space:
mode:
authorSquibid <me@zacharyscheiman.com>2023-10-22 18:07:36 -0400
committerSquibid <me@zacharyscheiman.com>2023-10-22 18:07:36 -0400
commita7929fa1c04758a0da28a58d3da195c7b218679b (patch)
treeecf13ead495e9b99896c0145fd61c5e5922e1993 /after/plugin
parent87aafcd44cfa7ddccd5349d9eb2fb415d2ad6f8b (diff)
downloadnvim-a7929fa1c04758a0da28a58d3da195c7b218679b.tar.gz
nvim-a7929fa1c04758a0da28a58d3da195c7b218679b.tar.bz2
nvim-a7929fa1c04758a0da28a58d3da195c7b218679b.zip
move highlights to colorscheme, and change cmp style
Diffstat (limited to 'after/plugin')
-rw-r--r--after/plugin/cmp.lua28
1 files changed, 8 insertions, 20 deletions
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 -----------------------------------------------------------------