neovim light theme working 1
This commit is contained in:
@@ -3,16 +3,18 @@ local M = {}
|
||||
function M.get(C)
|
||||
return {
|
||||
Normal = { fg = C.text, bg = C.none },
|
||||
Directory = { fg = C.accent },
|
||||
Question = { fg = C.text },
|
||||
LineNr = { fg = C.muted },
|
||||
CursorLineNr = { fg = C.accent, bold = true },
|
||||
CursorLine = { bg = C.surface },
|
||||
Visual = { bg = C.accent_light },
|
||||
|
||||
Search = { fg = C.yellow },
|
||||
CurSearch = { fg = C.base, bg = C.yellow, bold = true },
|
||||
IncSearch = { fg = C.base, bg = C.yellow, bold = true },
|
||||
CurSearch = { fg = C.yellow, bg = C.none, bold = true },
|
||||
IncSearch = { fg = C.yellow, bg = C.none, bold = true },
|
||||
|
||||
MatchParen = { fg = C.base, bg = C.accent },
|
||||
MatchParen = { fg = C.accent, bg = C.accent_light, bold = true },
|
||||
EndOfBuffer = { fg = C.base }, -- End-of-buffer marker (~ lines)
|
||||
|
||||
WinSeparator = { fg = C.muted },
|
||||
@@ -24,13 +26,6 @@ function M.get(C)
|
||||
TabLine = { fg = C.muted }, -- Unselected tab
|
||||
TabLineSel = { fg = C.text, bold = true }, -- Selected tab
|
||||
TabLineFill = { bg = C.none }, -- Empty space in the tabline
|
||||
|
||||
-- DiagnosticError = { undercurl = true, sp = C.red },
|
||||
-- DiagnosticWarn = { undercurl = true, sp = C.yellow },
|
||||
-- DiagnosticInfo = { underline = true, sp = C.accent },
|
||||
-- DiagnosticHint = { underline = true, sp = C.green },
|
||||
|
||||
Directory = { fg = C.accent },
|
||||
}
|
||||
end
|
||||
|
||||
|
||||
@@ -1,13 +1,7 @@
|
||||
local M = {}
|
||||
|
||||
function M.get(C)
|
||||
return {
|
||||
NvimTreeFolderIcon = { fg = C.accent },
|
||||
NvimTreeRootFolder = { fg = C.text, bold = true },
|
||||
-- NvimTreeOpenedHL = { bg = C.surface },
|
||||
}
|
||||
return {}
|
||||
end
|
||||
|
||||
return M
|
||||
|
||||
|
||||
|
||||
@@ -2,10 +2,7 @@ local M = {}
|
||||
|
||||
function M.get(C)
|
||||
return {
|
||||
-- TelescopeBorder = { fg = C.muted, bg = C.green },
|
||||
TelescopePrompt = { fg = C.text, bg = C.green },
|
||||
-- TelescopePromptPrefix = { fg = C.accent, bg = C.red },
|
||||
-- TelescopeSelection = { bg = C.surface },
|
||||
TelescopeMatching = { fg = C.yellow, bg = C.none, bold = true },
|
||||
}
|
||||
end
|
||||
|
||||
|
||||
@@ -1,24 +1,20 @@
|
||||
local M = {}
|
||||
|
||||
function M.get(C)
|
||||
local theme = {
|
||||
["@comment"] = { fg = C.muted, italic = true },
|
||||
["@spell"] = { fg = C.syntax },
|
||||
["@markup"] = { fg = C.syntax },
|
||||
["@text"] = { fg = C.syntax },
|
||||
["@property"] = { fg = C.syntax },
|
||||
["@conceal"] = { fg = C.syntax },
|
||||
}
|
||||
return {
|
||||
["@constant.macro"] = { fg = C.syntax },
|
||||
["@function.method"] = { fg = C.syntax },
|
||||
["@type.qualifier"] = { fg = C.syntax },
|
||||
["@variable.parameter"] = { fg = C.syntax },
|
||||
["@variable"] = { fg = C.syntax },
|
||||
["@type.definition"] = { fg = C.syntax },
|
||||
["@markup.italic"] = { fg = C.syntax },
|
||||
["@markup.strong"] = { fg = C.syntax },
|
||||
["@markup.underline"] = { fg = C.syntax },
|
||||
["@markup.strikethrough"] = { fg = C.syntax },
|
||||
|
||||
for _, hl in ipairs(vim.fn.getcompletion("@", "highlight")) do
|
||||
if theme[hl] == nil then
|
||||
theme[hl] = { fg = C.syntax }
|
||||
end
|
||||
end
|
||||
|
||||
return theme
|
||||
["@_jsx_attribute"] = { link = "Constant" },
|
||||
}
|
||||
end
|
||||
|
||||
return M
|
||||
|
||||
|
||||
|
||||
@@ -1,9 +1,36 @@
|
||||
local M = {}
|
||||
|
||||
-- fallback for vim without tree-sitter
|
||||
function M.get(C)
|
||||
return {}
|
||||
return {
|
||||
Comment = { fg = C.muted, italic = true },
|
||||
|
||||
-- general
|
||||
Constant = { fg = C.syntax },
|
||||
String = { fg = C.syntax },
|
||||
Function = { fg = C.syntax },
|
||||
Type = { fg = C.syntax },
|
||||
Statement = { fg = C.syntax },
|
||||
Identifier = { fg = C.syntax },
|
||||
Operator = { fg = C.syntax },
|
||||
PreProc = { fg = C.syntax },
|
||||
Special = { fg = C.syntax },
|
||||
Delimiter = { fg = C.syntax },
|
||||
Todo = { fg = C.syntax },
|
||||
Title = { fg = C.syntax },
|
||||
Underlined = { fg = C.syntax },
|
||||
|
||||
-- diffs
|
||||
Added = { fg = C.green },
|
||||
Removed = { fg = C.red },
|
||||
Changed = { fg = C.yellow },
|
||||
|
||||
-- diagnostics
|
||||
DiagnosticInfo = { fg = C.blue },
|
||||
DiagnosticWarn = { fg = C.yellow },
|
||||
DiagnosticError = { fg = C.red },
|
||||
DiagnosticDeprecated = { fg = C.magenta },
|
||||
DiagnosticUnderlineError = { fg = C.syntax, underline = true },
|
||||
}
|
||||
end
|
||||
|
||||
return M
|
||||
|
||||
|
||||
Reference in New Issue
Block a user