We no longer dim inactive windows, add new highlight group which is intended to use for utility panels such as oil, trouble, lspsaga, mason, lazy, general floating windows, maybe even term window? Basically, just not the code window
This commit is contained in:
parent
064015f873
commit
2ba73eb10e
1 changed files with 21 additions and 7 deletions
|
|
@ -1,8 +1,21 @@
|
||||||
|
local function add_new_custom_highlights()
|
||||||
|
local colors = require("catppuccin.palettes.macchiato");
|
||||||
|
local highlights = {
|
||||||
|
{ name = "Utility", config = { bg = colors.mantle, fg = colors.text } },
|
||||||
|
}
|
||||||
|
|
||||||
|
for _, highlight in ipairs(highlights) do
|
||||||
|
vim.api.nvim_set_hl(0, highlight.name, highlight.config)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
return {
|
return {
|
||||||
"catppuccin/nvim",
|
"catppuccin/nvim",
|
||||||
name = "catppuccin",
|
name = "catppuccin",
|
||||||
priority = 1000,
|
priority = 1000,
|
||||||
config = function()
|
config = function()
|
||||||
|
add_new_custom_highlights()
|
||||||
|
|
||||||
require("catppuccin").setup({
|
require("catppuccin").setup({
|
||||||
flavour = "macchiato",
|
flavour = "macchiato",
|
||||||
background = {
|
background = {
|
||||||
|
|
@ -19,15 +32,15 @@ return {
|
||||||
mason = true,
|
mason = true,
|
||||||
semantic_tokens = true,
|
semantic_tokens = true,
|
||||||
treesitter_context = true,
|
treesitter_context = true,
|
||||||
telescope = {
|
-- telescope = { -- This doesn't seem to be compatible when running the custom dropdown theme
|
||||||
enable = true,
|
-- enable = true
|
||||||
},
|
-- },
|
||||||
cmp = true,
|
cmp = true,
|
||||||
dap_ui = true,
|
dap_ui = true,
|
||||||
dap = true,
|
dap = true,
|
||||||
},
|
},
|
||||||
dim_inactive = {
|
dim_inactive = {
|
||||||
enabled = true,
|
enabled = false,
|
||||||
shade = "dark",
|
shade = "dark",
|
||||||
percent = 0.15,
|
percent = 0.15,
|
||||||
},
|
},
|
||||||
|
|
@ -36,11 +49,12 @@ return {
|
||||||
},
|
},
|
||||||
custom_highlights = function(colors)
|
custom_highlights = function(colors)
|
||||||
return {
|
return {
|
||||||
FloatBorder = { fg = colors.lavender },
|
FloatBorder = { fg = colors.surface0 },
|
||||||
CmpItemMenu = { fg = colors.overlay2 },
|
CmpItemMenu = { fg = colors.overlay2 },
|
||||||
TelescopeNormal = { link = "NormalFloat" },
|
|
||||||
TelescopeSelection = { link = "NormalFloat" },
|
|
||||||
CopilotSuggestion = { fg = colors.overlay2 },
|
CopilotSuggestion = { fg = colors.overlay2 },
|
||||||
|
|
||||||
|
Pmenu = { link = "Utility" },
|
||||||
|
PmenuSel = { bg = colors.overlay0 },
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue