Neovim: Better distinguish popup windows form background

This commit is contained in:
Tony Grosinger 2024-05-30 21:25:06 -07:00
parent 5ff61f8757
commit 43ac415294

View File

@ -651,6 +651,12 @@ require('lazy').setup({
luasnip.config.setup {} luasnip.config.setup {}
cmp.setup { cmp.setup {
window = {
-- Optionally add a border to the completions windows.
-- Does not affect the <shift>-k window.
-- completion = cmp.config.window.bordered(),
-- documentation = cmp.config.window.bordered(),
},
snippet = { snippet = {
expand = function(args) expand = function(args)
luasnip.lsp_expand(args.body) luasnip.lsp_expand(args.body)
@ -756,6 +762,14 @@ require('lazy').setup({
telescope = true, telescope = true,
which_key = true, which_key = true,
}, },
custom_highlights = function(C)
return {
WinSeparator = { fg = C.pink },
NormalFloat = { bg = C.crust },
Pmenu = { bg = C.crust },
PmenuSel = { fg = C.text, bg = C.surface0, style = { 'bold' } },
}
end,
}, },
init = function() init = function()
vim.cmd.colorscheme 'catppuccin' vim.cmd.colorscheme 'catppuccin'