mirror of https://github.com/sgoudham/nvim.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
83 lines
6.6 KiB
Lua
83 lines
6.6 KiB
Lua
3 years ago
|
local M = {}
|
||
|
|
||
2 years ago
|
local ucolors = require("catppuccin.utils.colors")
|
||
|
local lui = require("catppuccin.lib.ui")
|
||
3 years ago
|
|
||
2 years ago
|
function M.get()
|
||
3 years ago
|
return {
|
||
3 years ago
|
ColorColumn = { bg = cp.surface0 }, -- used for the columns set with 'colorcolumn'
|
||
|
Conceal = { fg = cp.overlay1 }, -- placeholder characters substituted for concealed text (see 'conceallevel')
|
||
3 years ago
|
Cursor = { fg = cp.base, bg = cp.text }, -- character under the cursor
|
||
|
lCursor = { fg = cp.base, bg = cp.text }, -- the character under the cursor when |language-mapping| is used (see 'guicursor')
|
||
|
CursorIM = { fg = cp.base, bg = cp.text }, -- like Cursor, but used when in IME mode |CursorIM|
|
||
|
CursorColumn = { bg = cp.mantle }, -- Screen-column at the cursor, when 'cursorcolumn' is secp.
|
||
2 years ago
|
CursorLine = {
|
||
|
bg = ucolors.vary_color(
|
||
|
{ latte = ucolors.lighten(cp.mantle, 0.70, cp.base) },
|
||
|
ucolors.darken(cp.surface0, 0.64, cp.base)
|
||
|
),
|
||
|
}, -- Screen-line at the cursor, when 'cursorline' is secp. Low-priority if forecrust (ctermfg OR guifg) is not secp.
|
||
3 years ago
|
Directory = { fg = cp.blue }, -- directory names (and other special names in listings)
|
||
3 years ago
|
EndOfBuffer = { fg = cp.base }, -- filler lines (~) after the end of the buffer. By default, this is highlighted like |hl-NonText|.
|
||
2 years ago
|
ErrorMsg = { fg = cp.red, style = { "bold", "italic" } }, -- error messages on the command line
|
||
3 years ago
|
VertSplit = { fg = cp.crust }, -- the column separating vertically split windows
|
||
3 years ago
|
Folded = { fg = cp.blue, bg = cp.surface1 }, -- line used for closed folds
|
||
3 years ago
|
FoldColumn = { bg = cp.base, fg = cp.overlay0 }, -- 'foldcolumn'
|
||
|
SignColumn = { bg = cnf.transparent_background and cp.none or cp.base, fg = cp.surface1 }, -- column where |signs| are displayed
|
||
|
SignColumnSB = { bg = cp.crust, fg = cp.surface1 }, -- column where |signs| are displayed
|
||
3 years ago
|
Substitute = { bg = cp.surface1, fg = cp.pink }, -- |:substitute| replacement text highlighting
|
||
2 years ago
|
LineNr = { fg = ucolors.vary_color({ latte = cp.base0 }, cp.surface1) }, -- Line number for ":number" and ":#" commands, and when 'number' or 'relativenumber' option is secp.
|
||
3 years ago
|
CursorLineNr = { fg = cp.lavender }, -- Like LineNr when 'cursorline' or 'relativenumber' is set for the cursor line. highlights the number in numberline.
|
||
2 years ago
|
MatchParen = { fg = cp.peach, style = { "bold" } }, -- The character under the cursor or just before it, if it is a paired bracket, and its match. |pi_paren.txt|
|
||
|
ModeMsg = { fg = cp.text, style = { "bold" } }, -- 'showmode' message (e.g., "-- INSERT -- ")
|
||
3 years ago
|
MsgArea = { fg = cp.text }, -- Area for messages and cmdline
|
||
3 years ago
|
MsgSeparator = {}, -- Separator for scrolled messages, `msgsep` flag of 'display'
|
||
3 years ago
|
MoreMsg = { fg = cp.blue }, -- |more-prompt|
|
||
3 years ago
|
NonText = { fg = cp.overlay0 }, -- '@' at the end of the window, characters from 'showbreak' and other characters that do not really exist in the text (e.g., ">" displayed when a double-wide character doesn't fit at the end of the line). See also |hl-EndOfBuffer|.
|
||
3 years ago
|
Normal = { fg = cp.text, bg = cnf.transparent_background and cp.none or cp.base }, -- normal text
|
||
2 years ago
|
NormalNC = {
|
||
|
fg = cp.text,
|
||
2 years ago
|
bg = (cnf.transparent_background and cnf.dim_inactive.enable and lui.dim())
|
||
2 years ago
|
or (cnf.dim_inactive.enable and cp.dim)
|
||
2 years ago
|
or (cnf.transparent_background and cp.none)
|
||
|
or cp.base,
|
||
|
}, -- normal text in non-current windows
|
||
3 years ago
|
NormalSB = { fg = cp.text, bg = cp.crust }, -- normal text in non-current windows
|
||
|
NormalFloat = { fg = cp.text, bg = cp.mantle }, -- Normal text in floating windows.
|
||
3 years ago
|
FloatBorder = { fg = cp.blue },
|
||
3 years ago
|
Pmenu = { bg = cp.surface0, fg = cp.overlay2 }, -- Popup menu: normal item.
|
||
2 years ago
|
PmenuSel = { fg = cp.text, bg = cp.surface1, style = { "bold" } }, -- Popup menu: selected item.
|
||
3 years ago
|
PmenuSbar = { bg = cp.surface1 }, -- Popup menu: scrollbar.
|
||
|
PmenuThumb = { bg = cp.overlay0 }, -- Popup menu: Thumb of the scrollbar.
|
||
3 years ago
|
Question = { fg = cp.blue }, -- |hit-enter| prompt and yes/no questions
|
||
2 years ago
|
QuickFixLine = { bg = cp.surface1, style = { "bold" } }, -- Current |quickfix| item in the quickfix window. Combined with |hl-CursorLine| when the cursor is there.
|
||
2 years ago
|
Search = { bg = ucolors.darken(cp.sky, 0.30, cp.base), fg = cp.text }, -- Last search pattern highlighting (see 'hlsearch'). Also used for similar items that need to stand oucp.
|
||
|
IncSearch = { bg = ucolors.darken(cp.sky, 0.90, cp.base), fg = cp.mantle }, -- 'incsearch' highlighting; also used for the text replaced with ":s///c"
|
||
|
CurSearch = { bg = cp.red, fg = cp.mantle }, -- 'cursearch' highlighting: highlights the current search you're on differently
|
||
3 years ago
|
SpecialKey = { fg = cp.text }, -- Unprintable characters: text displayed differently from what it really is. But not 'listchars' textspace. |hl-Whitespace|
|
||
2 years ago
|
SpellBad = { sp = cp.red, style = { "undercurl" } }, -- Word that is not recognized by the spellchecker. |spell| Combined with the highlighting used otherwise.
|
||
|
SpellCap = { sp = cp.yellow, style = { "undercurl" } }, -- Word that should start with a capital. |spell| Combined with the highlighting used otherwise.
|
||
|
SpellLocal = { sp = cp.blue, style = { "undercurl" } }, -- Word that is recognized by the spellchecker as one that is used in another region. |spell| Combined with the highlighting used otherwise.
|
||
|
SpellRare = { sp = cp.green, style = { "undercurl" } }, -- Word that is recognized by the spellchecker as one that is hardly ever used. |spell| Combined with the highlighting used otherwise.
|
||
3 years ago
|
StatusLine = { fg = cp.text, bg = cp.mantle }, -- status line of current window
|
||
|
StatusLineNC = { fg = cp.surface1, bg = cp.mantle }, -- status lines of not-current windows Note: if this is equal to "StatusLine" Vim will use "^^^" in the status line of the current window.
|
||
|
TabLine = { bg = cp.mantle, fg = cp.surface1 }, -- tab pages line, not active tab page label
|
||
3 years ago
|
TabLineFill = { bg = cp.black }, -- tab pages line, where there are no labels
|
||
3 years ago
|
TabLineSel = { fg = cp.green, bg = cp.surface1 }, -- tab pages line, active tab page label
|
||
2 years ago
|
Title = { fg = cp.blue, style = { "bold" } }, -- titles for output from ":set all", ":autocmd" etcp.
|
||
|
Visual = { bg = cp.surface1, style = { "bold" } }, -- Visual mode selection
|
||
|
VisualNOS = { bg = cp.surface1, style = { "bold" } }, -- Visual mode selection when vim is "Not Owning the Selection".
|
||
3 years ago
|
WarningMsg = { fg = cp.yellow }, -- warning messages
|
||
3 years ago
|
Whitespace = { fg = cp.surface1 }, -- "nbsp", "space", "tab" and "trail" in 'listchars'
|
||
|
WildMenu = { bg = cp.overlay0 }, -- current match in 'wildmenu' completion
|
||
3 years ago
|
WinBar = { fg = cp.rosewater },
|
||
3 years ago
|
-- These groups are not listed as default vim groups,
|
||
|
-- but they are defacto standard group names for syntax highlighting.
|
||
3 years ago
|
-- overlay0ed out groups should chain up to their "preferred" group by
|
||
3 years ago
|
-- default,
|
||
3 years ago
|
-- Unoverlay0 and edit if you want more specific syntax highlighting.
|
||
3 years ago
|
}
|
||
3 years ago
|
end
|
||
|
|
||
3 years ago
|
return M
|