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:
parent
dfc581fb0f
commit
01d864d9c8
2 changed files with 3 additions and 3 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
local function add_new_custom_highlights()
|
local function add_new_custom_highlights()
|
||||||
local colors = require("catppuccin.palettes.macchiato");
|
local colors = require("catppuccin.palettes.macchiato");
|
||||||
local highlights = {
|
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
|
for _, highlight in ipairs(highlights) do
|
||||||
|
|
@ -53,7 +53,7 @@ return {
|
||||||
CmpItemMenu = { fg = colors.overlay2 },
|
CmpItemMenu = { fg = colors.overlay2 },
|
||||||
CopilotSuggestion = { fg = colors.overlay2 },
|
CopilotSuggestion = { fg = colors.overlay2 },
|
||||||
|
|
||||||
Pmenu = { link = "Utility" },
|
Pmenu = { link = "EdgeTool" },
|
||||||
PmenuSel = { bg = colors.overlay0 },
|
PmenuSel = { bg = colors.overlay0 },
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ local function toggle_terminal()
|
||||||
|
|
||||||
vim.api.nvim_win_set_height(terminal_window, height)
|
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, "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")
|
utils.lock_buf_to_window(terminal_window, terminal_bufnr, "terminal")
|
||||||
vim.api.nvim_command("startinsert")
|
vim.api.nvim_command("startinsert")
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue