mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
update nvim-cmp conf
This commit is contained in:
parent
295f47b1fb
commit
528aa2f19a
@ -41,8 +41,8 @@ cmp.setup({
|
|||||||
keyword_length = 1,
|
keyword_length = 1,
|
||||||
completeopt = "menu,noselect"
|
completeopt = "menu,noselect"
|
||||||
},
|
},
|
||||||
experimental = {
|
view = {
|
||||||
ghost_text = false
|
entries = 'custom',
|
||||||
},
|
},
|
||||||
formatting = {
|
formatting = {
|
||||||
format = lspkind.cmp_format({
|
format = lspkind.cmp_format({
|
||||||
@ -59,4 +59,23 @@ cmp.setup({
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
vim.cmd("hi link CmpItemMenu Comment")
|
-- see https://github.com/hrsh7th/nvim-cmp/wiki/Menu-Appearance#how-to-add-visual-studio-code-dark-theme-colors-to-the-menu
|
||||||
|
vim.cmd[[
|
||||||
|
highlight! link CmpItemMenu Comment
|
||||||
|
" gray
|
||||||
|
highlight! CmpItemAbbrDeprecated guibg=NONE gui=strikethrough guifg=#808080
|
||||||
|
" blue
|
||||||
|
highlight! CmpItemAbbrMatch guibg=NONE guifg=#569CD6
|
||||||
|
highlight! CmpItemAbbrMatchFuzzy guibg=NONE guifg=#569CD6
|
||||||
|
" light blue
|
||||||
|
highlight! CmpItemKindVariable guibg=NONE guifg=#9CDCFE
|
||||||
|
highlight! CmpItemKindInterface guibg=NONE guifg=#9CDCFE
|
||||||
|
highlight! CmpItemKindText guibg=NONE guifg=#9CDCFE
|
||||||
|
" pink
|
||||||
|
highlight! CmpItemKindFunction guibg=NONE guifg=#C586C0
|
||||||
|
highlight! CmpItemKindMethod guibg=NONE guifg=#C586C0
|
||||||
|
" front
|
||||||
|
highlight! CmpItemKindKeyword guibg=NONE guifg=#D4D4D4
|
||||||
|
highlight! CmpItemKindProperty guibg=NONE guifg=#D4D4D4
|
||||||
|
highlight! CmpItemKindUnit guibg=NONE guifg=#D4D4D4
|
||||||
|
]]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user