Fix telescope highlights and refactor the entire thing quite a bit. It

now looks as it should, and also uses the edge tool highlights. Finally,
added an edge tool border highlight group!
This commit is contained in:
Martin Larsson 2024-06-30 18:06:08 +02:00
parent 35aa0beaa1
commit 77eab724c6
2 changed files with 51 additions and 97 deletions

View file

@ -1,7 +1,8 @@
local function add_new_custom_highlights()
local colors = require("catppuccin.palettes.macchiato");
local highlights = {
{ name = "EdgeTool", config = { bg = colors.mantle, fg = colors.text } },
{ name = "EdgeTool", config = { bg = colors.mantle, fg = colors.text } },
{ name = "EdgeToolBorder", config = { bg = colors.mantle, fg = colors.lavender } },
}
for _, highlight in ipairs(highlights) do
@ -32,9 +33,9 @@ return {
mason = true,
semantic_tokens = true,
treesitter_context = true,
-- telescope = { -- This doesn't seem to be compatible when running the custom dropdown theme
-- enable = true
-- },
telescope = { -- This doesn't seem to be compatible when running the custom dropdown theme
enable = true
},
cmp = true,
dap_ui = true,
dap = true,
@ -55,6 +56,16 @@ return {
Pmenu = { link = "EdgeTool" },
PmenuSel = { bg = colors.overlay0 },
-- Telescope
TelescopeNormal = { link = "EdgeTool" },
TelescopeBorder = { link = "EdgeToolBorder" },
TelescopePromptNormal = { link = "EdgeTool" },
TelescopePromptBorder = { link = "EdgeToolBorder" },
TelescopeResultsNormal = { link = "EdgeTool" },
TelescopeResultsBorder = { link = "EdgeToolBorder" },
TelescopePreviewNormal = { link = "EdgeTool" },
TelescopePreviewBorder = { link = "EdgeToolBorder" },
}
end
})