Remove different highlighting for edgetools, also, remove trouble symbols window

This commit is contained in:
Martin Larsson 2025-01-02 10:55:42 +01:00
parent ca811aa81c
commit a05c7ef81c
3 changed files with 0 additions and 106 deletions

View file

@ -1,22 +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 = "EdgeToolBorder", config = { bg = colors.mantle, fg = colors.lavender } },
}
for _, highlight in ipairs(highlights) do
vim.api.nvim_set_hl(0, highlight.name, highlight.config)
end
end
return {
"catppuccin/nvim",
name = "catppuccin",
priority = 1000,
config = function()
add_new_custom_highlights()
require("catppuccin").setup({
flavour = "macchiato",
background = {
@ -54,40 +40,9 @@ return {
CmpItemMenu = { fg = colors.overlay2 },
CopilotSuggestion = { fg = colors.overlay2 },
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" },
-- -- Trouble
-- TroubleNormal = { bg = colors.red },
-- TroubleCount = { bg = colors.red },
-- TroubleCode = { bg = colors.red },
-- TroubleText = { bg = colors.red },
-- Saga
SagaNormal = { link = "EdgeTool" },
SagaBorder = { link = "EdgeToolBorder" },
ActionPreviewTitle = { bg = colors.mantle },
-- Mason
Mason = { link = "EdgeTool" },
MasonNormal = { link = "EdgeTool" },
-- Lazy
LazyNormal = { link = "EdgeTool" },
-- Notify
NotifyBackground = { link = "EdgeTool" },
-- Leap
LeapLabelPrimary = { bg = colors.green, fg = colors.base },
LeapBackdrop = { link = "Comment" },

View file

@ -23,61 +23,6 @@ local function setup_autosize_callback()
})
end
local function change_trouble_highlight_background(color_palette)
local highlights = {
-- "TroubleCode",
-- "TroubleCount",
-- "TroubleDirectory",
-- "TroubleFilename",
-- "TroubleIconArray",
-- "TroubleIconBoolean",
-- "TroubleIconClass",
-- "TroubleIconConstant",
-- "TroubleIconConstructor",
-- "TroubleIconDirectory",
-- "TroubleIconEnum",
-- "TroubleIconEnumMember",
-- "TroubleIconEvent",
-- "TroubleIconField",
-- "TroubleIconFile",
-- "TroubleIconFunction",
-- "TroubleIconInterface",
-- "TroubleIconKey",
-- "TroubleIconMethod",
-- "TroubleIconModule",
-- "TroubleIconNamespace",
-- "TroubleIconNull",
-- "TroubleIconNumber",
-- "TroubleIconObject",
-- "TroubleIconOperator",
-- "TroubleIconPackage",
-- "TroubleIconProperty",
-- "TroubleIconString",
-- "TroubleIconStruct",
-- "TroubleIconTypeParameter",
-- "TroubleIconVariable",
-- "TroubleIndent",
-- "TroubleIndentFoldClosed",
-- "TroubleIndentFoldOpen",
-- "TroubleIndentLast",
-- "TroubleIndentMiddle",
-- "TroubleIndentTop",
-- "TroubleIndentWs",
-- "TroubleNormal",
-- "TroubleNormalNC",
-- "TroublePos",
-- "TroublePreview",
-- "TroubleSource",
-- "TroubleText",
}
for _, highlight in ipairs(highlights) do
local current_highlight = vim.api.nvim_get_hl(0, { name = highlight })
current_highlight.bg = "#1e2030" -- color_palette.mantle
vim.api.nvim_set_hl(0, highlight, current_highlight)
end
end
return {
"folke/trouble.nvim",
event = "VeryLazy",
@ -87,7 +32,6 @@ return {
trouble.setup({})
local utils = require("utils")
change_trouble_highlight_background()
setup_autosize_callback()
local function toggle_trouble_mode(mode_to_toggle)
@ -103,10 +47,6 @@ return {
keys = "x",
mode = "diagnostics"
},
{
keys = "ls",
mode = "symbols"
},
{
keys = "ll",
mode = "loclist"

View file

@ -34,7 +34,6 @@ 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:EdgeTool,FloatBorder:EdgeTool")
utils.lock_buf_to_window(terminal_window, terminal_bufnr, "terminal")
vim.api.nvim_command("startinsert")
end