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")
|
||||
|
||||
return {
|
||||
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},
|
||||
local M = {}
|
||||
|
||||
-- separators
|
||||
BufferLineSeparator = {fg = cpt.black, bg = cpt.black},
|
||||
BufferLineSeparatorVisible = {fg = cpt.black, bg = cpt.black},
|
||||
BufferLineSeparatorSelected = {fg = cpt.black, bg = cpt.black},
|
||||
function M.get(cpt)
|
||||
return {
|
||||
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
|
||||
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
|
||||
BufferLineCloseButton = {fg = cpt.gray, bg = cpt.black},
|
||||
BufferLineCloseButtonVisible = {fg = cpt.gray, bg = cpt.black},
|
||||
BufferLineCloseButtonSelected = {fg = cpt.red, bg = cpt.bg},
|
||||
}
|
||||
return M
|
||||
|
@ -1,3 +1,9 @@
|
||||
return {
|
||||
IndentBlanklineChar = {fg = cpt.gray}
|
||||
}
|
||||
local M = {}
|
||||
|
||||
function M.get(cpt)
|
||||
return {
|
||||
IndentBlanklineChar = {fg = cpt.gray}
|
||||
}
|
||||
end
|
||||
|
||||
return M
|
||||
|
@ -1,32 +1,38 @@
|
||||
return {
|
||||
-- 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
|
||||
local M = {}
|
||||
|
||||
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
|
||||
}
|
||||
function M.get(cpt)
|
||||
return {
|
||||
-- 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},
|
||||
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 {
|
||||
NvimTreeFolderName = {fg = cpt.blue},
|
||||
NvimTreeFolderIcon = {fg = cpt.blue},
|
||||
NvimTreeNormal = {fg = cpt.fg, bg = cpt.bg_sidebar},
|
||||
NvimTreeOpenedFolderName = {fg = cpt.blue},
|
||||
NvimTreeEmptyFolderName = {fg = cpt.blue_br},
|
||||
NvimTreeIndentMarker = {fg = cpt.comment},
|
||||
NvimTreeVertSplit = {fg = cpt.black, bg = cpt.black},
|
||||
NvimTreeRootFolder = {fg = cpt.black, style = "bold"},
|
||||
NvimTreeSymlink = {fg = cpt.magenta},
|
||||
NvimTreeStatuslineNc = {fg = cpt.black, bg = cpt.black},
|
||||
NvimTreeGitDirty = {fg = cpt.git.change},
|
||||
NvimTreeGitNew = {fg = cpt.git.add},
|
||||
NvimTreeGitDeleted = {fg = cpt.git.delete},
|
||||
NvimTreeSpecialFile = {fg = cpt.cyan},
|
||||
NvimTreeImageFile = {fg = cpt.fg_sidebar},
|
||||
NvimTreeOpenedFile = {fg = cpt.magenta},
|
||||
}
|
||||
local M = {}
|
||||
|
||||
function M.get(cpt)
|
||||
return {
|
||||
NvimTreeFolderName = {fg = cpt.blue},
|
||||
NvimTreeFolderIcon = {fg = cpt.blue},
|
||||
NvimTreeNormal = {fg = cpt.fg, bg = cpt.bg_sidebar},
|
||||
NvimTreeOpenedFolderName = {fg = cpt.blue},
|
||||
NvimTreeEmptyFolderName = {fg = cpt.blue_br},
|
||||
NvimTreeIndentMarker = {fg = cpt.comment},
|
||||
NvimTreeVertSplit = {fg = cpt.black, bg = cpt.black},
|
||||
NvimTreeRootFolder = {fg = cpt.black, style = "bold"},
|
||||
NvimTreeSymlink = {fg = cpt.magenta},
|
||||
NvimTreeStatuslineNc = {fg = cpt.black, bg = cpt.black},
|
||||
NvimTreeGitDirty = {fg = cpt.git.change},
|
||||
NvimTreeGitNew = {fg = cpt.git.add},
|
||||
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