mirror of https://github.com/sgoudham/nvim.git
fix: refactor to be able to properly reload all hi groups
parent
159037858b
commit
0dec7a2049
@ -1,22 +1,26 @@
|
|||||||
local util = require("catppuccino.utils.util")
|
local util = require("catppuccino.utils.util")
|
||||||
|
|
||||||
return {
|
local M = {}
|
||||||
BufferLineFill = {bg = util.brighten(cpt.bg, 0.04)},
|
|
||||||
BufferLineBackground = {fg = cpt.gray, bg = cpt.black},
|
|
||||||
BufferLineBufferVisible = {fg = cpt.gray, bg = cpt.black},
|
|
||||||
BufferLineBufferSelected = {fg = cpt.fg, bg = cpt.bg},
|
|
||||||
BufferLineTab = {fg = cpt.gray, bg = cpt.bg},
|
|
||||||
BufferLineTabSelected = {fg = cpt.red, bg = cpt.blue},
|
|
||||||
BufferLineTabClose = {fg = cpt.red, bg = cpt.black},
|
|
||||||
BufferLineIndicatorSelected = {fg = cpt.bg, bg = cpt.bg},
|
|
||||||
|
|
||||||
-- separators
|
function M.get(cpt)
|
||||||
BufferLineSeparator = {fg = cpt.black, bg = cpt.black},
|
return {
|
||||||
BufferLineSeparatorVisible = {fg = cpt.black, bg = cpt.black},
|
BufferLineFill = {bg = util.brighten(cpt.bg, 0.04)},
|
||||||
BufferLineSeparatorSelected = {fg = cpt.black, bg = cpt.black},
|
BufferLineBackground = {fg = cpt.gray, bg = cpt.black},
|
||||||
|
BufferLineBufferVisible = {fg = cpt.gray, bg = cpt.black},
|
||||||
|
BufferLineBufferSelected = {fg = cpt.fg, bg = cpt.bg},
|
||||||
|
BufferLineTab = {fg = cpt.gray, bg = cpt.bg},
|
||||||
|
BufferLineTabSelected = {fg = cpt.red, bg = cpt.blue},
|
||||||
|
BufferLineTabClose = {fg = cpt.red, bg = cpt.black},
|
||||||
|
BufferLineIndicatorSelected = {fg = cpt.bg, bg = cpt.bg},
|
||||||
|
-- separators
|
||||||
|
BufferLineSeparator = {fg = cpt.black, bg = cpt.black},
|
||||||
|
BufferLineSeparatorVisible = {fg = cpt.black, bg = cpt.black},
|
||||||
|
BufferLineSeparatorSelected = {fg = cpt.black, bg = cpt.black},
|
||||||
|
-- close buttons
|
||||||
|
BufferLineCloseButton = {fg = cpt.gray, bg = cpt.black},
|
||||||
|
BufferLineCloseButtonVisible = {fg = cpt.gray, bg = cpt.black},
|
||||||
|
BufferLineCloseButtonSelected = {fg = cpt.red, bg = cpt.bg}
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
-- close buttons
|
return M
|
||||||
BufferLineCloseButton = {fg = cpt.gray, bg = cpt.black},
|
|
||||||
BufferLineCloseButtonVisible = {fg = cpt.gray, bg = cpt.black},
|
|
||||||
BufferLineCloseButtonSelected = {fg = cpt.red, bg = cpt.bg},
|
|
||||||
}
|
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
return {
|
local M = {}
|
||||||
IndentBlanklineChar = {fg = cpt.gray}
|
|
||||||
}
|
function M.get(cpt)
|
||||||
|
return {
|
||||||
|
IndentBlanklineChar = {fg = cpt.gray}
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
|
return M
|
||||||
|
@ -1,32 +1,38 @@
|
|||||||
return {
|
local M = {}
|
||||||
-- These groups are for the native LSP cliencpt. Some other LSP clients may
|
|
||||||
-- use these groups, or use their own. Consult your LSP client's
|
|
||||||
-- documentation.
|
|
||||||
LspReferenceText = {bg = cpt.fg_gutter}, -- used for highlighting "text" references
|
|
||||||
LspReferenceRead = {bg = cpt.fg_gutter}, -- used for highlighting "read" references
|
|
||||||
LspReferenceWrite = {bg = cpt.fg_gutter}, -- used for highlighting "write" references
|
|
||||||
-- hightlight diagnostics in numberline
|
|
||||||
LspDiagnosticsDefaultError = {fg = cpt.error}, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline)
|
|
||||||
LspDiagnosticsDefaultWarning = {fg = cpt.warning}, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline)
|
|
||||||
LspDiagnosticsDefaultInformation = {fg = cpt.info}, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline)
|
|
||||||
LspDiagnosticsDefaultHint = {fg = cpt.hint}, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline)
|
|
||||||
LspSignatureActiveParameter = {fg = cpt.orange},
|
|
||||||
-- LspDiagnosticsFloatingError = { }, -- Used to color "Error" diagnostic messages in diagnostics float
|
|
||||||
-- LspDiagnosticsFloatingWarning = { }, -- Used to color "Warning" diagnostic messages in diagnostics float
|
|
||||||
-- LspDiagnosticsFloatingInformation = { }, -- Used to color "Information" diagnostic messages in diagnostics float
|
|
||||||
-- LspDiagnosticsFloatingHint = { }, -- Used to color "Hint" diagnostic messages in diagnostics float
|
|
||||||
|
|
||||||
LspDiagnosticsError = {fg = cpt.error},
|
function M.get(cpt)
|
||||||
LspDiagnosticsWarning = {fg = cpt.warning},
|
return {
|
||||||
LspDiagnosticsInformation = {fg = cpt.info},
|
-- These groups are for the native LSP cliencpt. Some other LSP clients may
|
||||||
LspDiagnosticsHint = {fg = cpt.hint},
|
-- use these groups, or use their own. Consult your LSP client's
|
||||||
LspDiagnosticsVirtualTextError = {fg = cpt.error, style = cpc.integrations.native_lsp.styles.errors}, -- Used for "Error" diagnostic virtual text
|
-- documentation.
|
||||||
LspDiagnosticsVirtualTextWarning = {fg = cpt.warning, style = cpc.integrations.native_lsp.styles.warnings}, -- Used for "Warning" diagnostic virtual text
|
LspReferenceText = {bg = cpt.fg_gutter}, -- used for highlighting "text" references
|
||||||
LspDiagnosticsVirtualTextInformation = {fg = cpt.info, style = cpc.integrations.native_lsp.styles.information}, -- Used for "Information" diagnostic virtual text
|
LspReferenceRead = {bg = cpt.fg_gutter}, -- used for highlighting "read" references
|
||||||
LspDiagnosticsVirtualTextHint = {fg = cpt.hint, style = cpc.integrations.native_lsp.styles.hints}, -- Used for "Hint" diagnostic virtual text
|
LspReferenceWrite = {bg = cpt.fg_gutter}, -- used for highlighting "write" references
|
||||||
LspDiagnosticsUnderlineError = {style = "underline", sp = cpt.error}, -- Used to underline "Error" diagnostics
|
-- hightlight diagnostics in numberline
|
||||||
LspDiagnosticsUnderlineWarning = {style = "underline", sp = cpt.warning}, -- Used to underline "Warning" diagnostics
|
LspDiagnosticsDefaultError = {fg = cpt.error}, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline)
|
||||||
LspDiagnosticsUnderlineInformation = {style = "underline", sp = cpt.info}, -- Used to underline "Information" diagnostics
|
LspDiagnosticsDefaultWarning = {fg = cpt.warning}, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline)
|
||||||
LspDiagnosticsUnderlineHint = {style = "underline", sp = cpt.hint}, -- Used to underline "Hint" diagnostics
|
LspDiagnosticsDefaultInformation = {fg = cpt.info}, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline)
|
||||||
LspCodeLens = { fg = cpt.comment }, -- virtual text of the codelens
|
LspDiagnosticsDefaultHint = {fg = cpt.hint}, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline)
|
||||||
}
|
LspSignatureActiveParameter = {fg = cpt.orange},
|
||||||
|
-- LspDiagnosticsFloatingError = { }, -- Used to color "Error" diagnostic messages in diagnostics float
|
||||||
|
-- LspDiagnosticsFloatingWarning = { }, -- Used to color "Warning" diagnostic messages in diagnostics float
|
||||||
|
-- LspDiagnosticsFloatingInformation = { }, -- Used to color "Information" diagnostic messages in diagnostics float
|
||||||
|
-- LspDiagnosticsFloatingHint = { }, -- Used to color "Hint" diagnostic messages in diagnostics float
|
||||||
|
|
||||||
|
LspDiagnosticsError = {fg = cpt.error},
|
||||||
|
LspDiagnosticsWarning = {fg = cpt.warning},
|
||||||
|
LspDiagnosticsInformation = {fg = cpt.info},
|
||||||
|
LspDiagnosticsHint = {fg = cpt.hint},
|
||||||
|
LspDiagnosticsVirtualTextError = {fg = cpt.error, style = cpc.integrations.native_lsp.styles.errors}, -- Used for "Error" diagnostic virtual text
|
||||||
|
LspDiagnosticsVirtualTextWarning = {fg = cpt.warning, style = cpc.integrations.native_lsp.styles.warnings}, -- Used for "Warning" diagnostic virtual text
|
||||||
|
LspDiagnosticsVirtualTextInformation = {fg = cpt.info, style = cpc.integrations.native_lsp.styles.information}, -- Used for "Information" diagnostic virtual text
|
||||||
|
LspDiagnosticsVirtualTextHint = {fg = cpt.hint, style = cpc.integrations.native_lsp.styles.hints}, -- Used for "Hint" diagnostic virtual text
|
||||||
|
LspDiagnosticsUnderlineError = {style = "underline", sp = cpt.error}, -- Used to underline "Error" diagnostics
|
||||||
|
LspDiagnosticsUnderlineWarning = {style = "underline", sp = cpt.warning}, -- Used to underline "Warning" diagnostics
|
||||||
|
LspDiagnosticsUnderlineInformation = {style = "underline", sp = cpt.info}, -- Used to underline "Information" diagnostics
|
||||||
|
LspDiagnosticsUnderlineHint = {style = "underline", sp = cpt.hint}, -- Used to underline "Hint" diagnostics
|
||||||
|
LspCodeLens = {fg = cpt.comment} -- virtual text of the codelens
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
|
return M
|
||||||
|
@ -1,18 +1,24 @@
|
|||||||
return {
|
local M = {}
|
||||||
NvimTreeFolderName = {fg = cpt.blue},
|
|
||||||
NvimTreeFolderIcon = {fg = cpt.blue},
|
function M.get(cpt)
|
||||||
NvimTreeNormal = {fg = cpt.fg, bg = cpt.bg_sidebar},
|
return {
|
||||||
NvimTreeOpenedFolderName = {fg = cpt.blue},
|
NvimTreeFolderName = {fg = cpt.blue},
|
||||||
NvimTreeEmptyFolderName = {fg = cpt.blue_br},
|
NvimTreeFolderIcon = {fg = cpt.blue},
|
||||||
NvimTreeIndentMarker = {fg = cpt.comment},
|
NvimTreeNormal = {fg = cpt.fg, bg = cpt.bg_sidebar},
|
||||||
NvimTreeVertSplit = {fg = cpt.black, bg = cpt.black},
|
NvimTreeOpenedFolderName = {fg = cpt.blue},
|
||||||
NvimTreeRootFolder = {fg = cpt.black, style = "bold"},
|
NvimTreeEmptyFolderName = {fg = cpt.blue_br},
|
||||||
NvimTreeSymlink = {fg = cpt.magenta},
|
NvimTreeIndentMarker = {fg = cpt.comment},
|
||||||
NvimTreeStatuslineNc = {fg = cpt.black, bg = cpt.black},
|
NvimTreeVertSplit = {fg = cpt.black, bg = cpt.black},
|
||||||
NvimTreeGitDirty = {fg = cpt.git.change},
|
NvimTreeRootFolder = {fg = cpt.black, style = "bold"},
|
||||||
NvimTreeGitNew = {fg = cpt.git.add},
|
NvimTreeSymlink = {fg = cpt.magenta},
|
||||||
NvimTreeGitDeleted = {fg = cpt.git.delete},
|
NvimTreeStatuslineNc = {fg = cpt.black, bg = cpt.black},
|
||||||
NvimTreeSpecialFile = {fg = cpt.cyan},
|
NvimTreeGitDirty = {fg = cpt.git.change},
|
||||||
NvimTreeImageFile = {fg = cpt.fg_sidebar},
|
NvimTreeGitNew = {fg = cpt.git.add},
|
||||||
NvimTreeOpenedFile = {fg = cpt.magenta},
|
NvimTreeGitDeleted = {fg = cpt.git.delete},
|
||||||
}
|
NvimTreeSpecialFile = {fg = cpt.cyan},
|
||||||
|
NvimTreeImageFile = {fg = cpt.fg_sidebar},
|
||||||
|
NvimTreeOpenedFile = {fg = cpt.magenta}
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
|
return M
|
||||||
|
Loading…
Reference in New Issue