Rename Utility highlight group to EdgeTool, the idea is to have a

different color for all of the edge panel tools, such as the terminal,
LSP/Trouble/oil panels etc
This commit is contained in:
Martin Larsson 2024-06-29 14:04:27 +02:00
parent dfc581fb0f
commit 01d864d9c8
2 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,7 @@
local function add_new_custom_highlights()
local colors = require("catppuccin.palettes.macchiato");
local highlights = {
{ name = "Utility", config = { bg = colors.mantle, fg = colors.text } },
{ name = "EdgeTool", config = { bg = colors.mantle, fg = colors.text } },
}
for _, highlight in ipairs(highlights) do
@ -53,7 +53,7 @@ return {
CmpItemMenu = { fg = colors.overlay2 },
CopilotSuggestion = { fg = colors.overlay2 },
Pmenu = { link = "Utility" },
Pmenu = { link = "EdgeTool" },
PmenuSel = { bg = colors.overlay0 },
}
end

View file

@ -34,7 +34,7 @@ local function toggle_terminal()
vim.api.nvim_win_set_height(terminal_window, height)
vim.api.nvim_win_set_option(terminal_window, "winfixheight", true)
vim.api.nvim_win_set_option(terminal_window, "winhighlight", "Normal:Utility,FloatBorder:Utility")
vim.api.nvim_win_set_option(terminal_window, "winhighlight", "Normal:EdgeTool,FloatBorder:EdgeTool")
utils.lock_buf_to_window(terminal_window, terminal_bufnr, "terminal")
vim.api.nvim_command("startinsert")
end