From 75e4932e68e6ccd56e11ca1356dc49bbc021c03c Mon Sep 17 00:00:00 2001 From: Toth Alex Date: Mon, 2 Oct 2023 00:45:58 +0200 Subject: [PATCH] fix dropdown --- lua/custom/plugins/init.lua | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/lua/custom/plugins/init.lua b/lua/custom/plugins/init.lua index 852aea19..5d34ca4b 100644 --- a/lua/custom/plugins/init.lua +++ b/lua/custom/plugins/init.lua @@ -38,5 +38,32 @@ return { -- save keymap.set('n', 'sw', ':w', { silent = true }) + + require 'cmp'.setup { + window = { + completion = { + border = "rounded", + winhighlight = "Normal:CmpNormal,CursorLine:MyPmenuSel", + } + } + } + + vim.api.nvim_set_hl(0, 'MyPmenuSel', { bg = 'NONE', fg = '#d55fde' }) + -- gray + vim.api.nvim_set_hl(0, 'CmpItemAbbrDeprecated', { bg = 'NONE', strikethrough = true, fg = '#808080' }) + -- blue + vim.api.nvim_set_hl(0, 'CmpItemAbbrMatch', { bg = 'NONE', fg = '#569CD6' }) + vim.api.nvim_set_hl(0, 'CmpItemAbbrMatchFuzzy', { link = 'CmpIntemAbbrMatch' }) + -- light blue + vim.api.nvim_set_hl(0, 'CmpItemKindVariable', { bg = 'NONE', fg = '#9CDCFE' }) + vim.api.nvim_set_hl(0, 'CmpItemKindInterface', { link = 'CmpItemKindVariable' }) + vim.api.nvim_set_hl(0, 'CmpItemKindText', { link = 'CmpItemKindVariable' }) + -- pink + vim.api.nvim_set_hl(0, 'CmpItemKindFunction', { bg = 'NONE', fg = '#C586C0' }) + vim.api.nvim_set_hl(0, 'CmpItemKindMethod', { link = 'CmpItemKindFunction' }) + -- front + vim.api.nvim_set_hl(0, 'CmpItemKindKeyword', { bg = 'NONE', fg = '#D4D4D4' }) + vim.api.nvim_set_hl(0, 'CmpItemKindProperty', { link = 'CmpItemKindKeyword' }) + vim.api.nvim_set_hl(0, 'CmpItemKindUnit', { link = 'CmpItemKindKeyword' }) end }