This commit is contained in:
Toth Alex 2023-10-02 00:52:42 +02:00
parent 75e4932e68
commit 72aa7f65b2
2 changed files with 6 additions and 9 deletions

View File

@ -529,6 +529,12 @@ cmp.setup {
{ name = 'nvim_lsp' }, { name = 'nvim_lsp' },
{ name = 'luasnip' }, { name = 'luasnip' },
}, },
window = {
completion = {
border = "rounded",
winhighlight = "Normal:CmpNormal,CursorLine:MyPmenuSel",
},
}
} }
-- The line beneath this is called `modeline`. See `:help modeline` -- The line beneath this is called `modeline`. See `:help modeline`

View File

@ -39,15 +39,6 @@ return {
-- save -- save
keymap.set('n', 'sw', ':w<CR>', { silent = true }) keymap.set('n', 'sw', ':w<CR>', { 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' }) vim.api.nvim_set_hl(0, 'MyPmenuSel', { bg = 'NONE', fg = '#d55fde' })
-- gray -- gray
vim.api.nvim_set_hl(0, 'CmpItemAbbrDeprecated', { bg = 'NONE', strikethrough = true, fg = '#808080' }) vim.api.nvim_set_hl(0, 'CmpItemAbbrDeprecated', { bg = 'NONE', strikethrough = true, fg = '#808080' })