cleaned up comments, added one csharp specific group

This commit is contained in:
Rudis Muiznieks 2021-09-01 07:10:04 -05:00
parent 6345998956
commit 22effa9a5c

View file

@ -1,23 +1,6 @@
--
-- Built with,
--
-- ,gggg,
-- d8" "8I ,dPYb,
-- 88 ,dP IP'`Yb
-- 8888888P" I8 8I
-- 88 I8 8'
-- 88 gg gg ,g, I8 dPgg,
-- ,aa,_88 I8 8I ,8'8, I8dP" "8I
-- dP" "88P I8, ,8I ,8' Yb I8P I8
-- Yb,_,d88b,,_ ,d8b, ,d8b,,8'_ 8) ,d8 I8,
-- "Y8P" "Y888888P'"Y88P"`Y8P' "YY8P8P88P `Y8
--
local lush = require('lush') local lush = require('lush')
local hsl = lush.hsl local hsl = lush.hsl
-- LSP/Linters mistakenly show `undefined global` errors in the spec, they may
-- support an annotation like the following. Consult your server documentation.
---@diagnostic disable: undefined-global ---@diagnostic disable: undefined-global
local theme = lush(function() local theme = lush(function()
return { return {
@ -25,204 +8,119 @@ local theme = lush(function()
CursorLine { bg = hsl(0, 0, 3) }, CursorLine { bg = hsl(0, 0, 3) },
Comment { fg = hsl(47, 6, 57), gui = "italic" }, Comment { fg = hsl(47, 6, 57), gui = "italic" },
Visual { bg = hsl(12, 6, 31) }, Visual { bg = hsl(12, 6, 31) },
Constant { fg = hsl(6, 70, 66) }, -- (preferred) any constant Constant { fg = hsl(6, 70, 66) },
String { fg = hsl(93, 73, 61), gui = "italic" }, -- a string constant: "this is a string" String { fg = hsl(93, 73, 61), gui = "italic" },
Keyword { fg = hsl(214, 86, 75) }, -- any other keyword Keyword { fg = hsl(214, 86, 75) },
Function { fg = hsl(77, 67, 71) }, -- function name (also: methods for classes) Function { fg = hsl(77, 67, 71) },
Cursor { bg = hsl(0, 0, 40), fg = CursorLine.bg }, -- character under the cursor Cursor { bg = hsl(0, 0, 40), fg = CursorLine.bg },
Error { fg = hsl(0, 100, 50), gui = "italic" }, -- (preferred) any erroneous construct Error { fg = hsl(0, 100, 50), gui = "italic" },
WarningMsg { fg = hsl(34, 100, 50), gui = "italic" }, -- warning messages WarningMsg { fg = hsl(34, 100, 50), gui = "italic" },
NonText { fg = hsl(0, 0, 30) }, -- '@' 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|. NonText { fg = hsl(0, 0, 30) },
Search { bg = hsl(280, 100, 76), fg = CursorLine.bg }, -- Last search pattern highlighting (see 'hlsearch'). Also used for similar items that need to stand out. Search { bg = hsl(280, 100, 76), fg = CursorLine.bg },
ColorColumn { }, -- used for the columns set with 'colorcolumn' ColorColumn { },
Conceal { }, -- placeholder characters substituted for concealed text (see 'conceallevel') Conceal { },
lCursor { }, -- the character under the cursor when |language-mapping| is used (see 'guicursor') lCursor { },
CursorIM { }, -- like Cursor, but used when in IME mode |CursorIM| CursorIM { },
CursorColumn { }, -- Screen-column at the cursor, when 'cursorcolumn' is set. CursorColumn { },
Directory { Keyword }, -- directory names (and other special names in listings) Directory { Keyword },
DiffAdd { }, -- diff mode: Added line |diff.txt| DiffAdd { },
DiffChange { }, -- diff mode: Changed line |diff.txt| DiffChange { },
DiffDelete { }, -- diff mode: Deleted line |diff.txt| DiffDelete { },
DiffText { }, -- diff mode: Changed text within a changed line |diff.txt| DiffText { },
EndOfBuffer { NonText }, -- filler lines (~) after the end of the buffer. By default, this is highlighted like |hl-NonText|. EndOfBuffer { NonText },
TermCursor { }, -- cursor in a focused terminal TermCursor { },
TermCursorNC { }, -- cursor in an unfocused terminal TermCursorNC { },
ErrorMsg { Error }, -- error messages on the command line ErrorMsg { Error },
VertSplit { fg = CursorLine.bg }, -- the column separating vertically split windows VertSplit { fg = CursorLine.bg },
Folded { }, -- line used for closed folds Folded { },
FoldColumn { }, -- 'foldcolumn' FoldColumn { },
SignColumn { CursorLine }, -- column where |signs| are displayed SignColumn { CursorLine },
IncSearch { Search }, -- 'incsearch' highlighting; also used for the text replaced with ":s///c" IncSearch { Search },
Substitute { }, -- |:substitute| replacement text highlighting Substitute { },
LineNr { bg = CursorLine.bg, fg = NonText.fg }, -- Line number for ":number" and ":#" commands, and when 'number' or 'relativenumber' option is set. LineNr { bg = CursorLine.bg, fg = NonText.fg },
CursorLineNr { bg = CursorLine.bg }, -- Like LineNr when 'cursorline' or 'relativenumber' is set for the cursor line. CursorLineNr { bg = CursorLine.bg },
MatchParen { gui = "bold" }, -- The character under the cursor or just before it, if it is a paired bracket, and its match. |pi_paren.txt| MatchParen { gui = "bold" },
ModeMsg { }, -- 'showmode' message (e.g., "-- INSERT -- ") ModeMsg { },
MsgArea { }, -- Area for messages and cmdline MsgArea { },
MsgSeparator { }, -- Separator for scrolled messages, `msgsep` flag of 'display' MsgSeparator { },
MoreMsg { }, -- |more-prompt| MoreMsg { },
NormalFloat { }, -- Normal text in floating windows. NormalFloat { },
NormalNC { }, -- normal text in non-current windows NormalNC { },
Pmenu { }, -- Popup menu: normal item. Pmenu { },
PmenuSel { bg = Keyword.fg, fg = CursorLine.bg }, -- Popup menu: selected item. PmenuSel { bg = Keyword.fg, fg = CursorLine.bg },
PmenuSbar { CursorLine }, -- Popup menu: scrollbar. PmenuSbar { CursorLine },
PmenuThumb { bg = NonText.fg }, -- Popup menu: Thumb of the scrollbar. PmenuThumb { bg = NonText.fg },
Question { }, -- |hit-enter| prompt and yes/no questions Question { },
QuickFixLine { }, -- Current |quickfix| item in the quickfix window. Combined with |hl-CursorLine| when the cursor is there. QuickFixLine { },
SpecialKey { NonText }, -- Unprintable characters: text displayed differently from what it really is. But not 'listchars' whitespace. |hl-Whitespace| SpecialKey { NonText },
SpellBad { Error }, -- Word that is not recognized by the spellchecker. |spell| Combined with the highlighting used otherwise. SpellBad { Error },
SpellCap { WarningMsg }, -- Word that should start with a capital. |spell| Combined with the highlighting used otherwise. SpellCap { WarningMsg },
SpellLocal { WarningMsg }, -- Word that is recognized by the spellchecker as one that is used in another region. |spell| Combined with the highlighting used otherwise. SpellLocal { WarningMsg },
SpellRare { WarningMsg }, -- Word that is recognized by the spellchecker as one that is hardly ever used. |spell| Combined with the highlighting used otherwise. SpellRare { WarningMsg },
StatusLine { CursorLine }, -- status line of current window StatusLine { CursorLine },
StatusLineNC { }, -- status lines of not-current windows Note: if this is equal to "StatusLine" Vim will use "^^^" in the status line of the current window. StatusLineNC { },
TabLine { }, -- tab pages line, not active tab page label TabLine { },
TabLineFill { }, -- tab pages line, where there are no labels TabLineFill { },
TabLineSel { }, -- tab pages line, active tab page label TabLineSel { },
Title { }, -- titles for output from ":set all", ":autocmd" etc. Title { },
VisualNOS { }, -- Visual mode selection when vim is "Not Owning the Selection". VisualNOS { },
Whitespace { NonText }, -- "nbsp", "space", "tab" and "trail" in 'listchars' Whitespace { NonText },
WildMenu { }, -- current match in 'wildmenu' completion WildMenu { },
-- These groups are not listed as default vim groups, Character { String },
-- but they are defacto standard group names for syntax highlighting. Number { Constant },
-- commented out groups should chain up to their "preferred" group by Boolean { Constant },
-- default, Float { Constant },
-- Uncomment and edit if you want more specific syntax highlighting.
Character { String }, -- a character constant: 'c', '\n' Identifier { },
Number { Constant }, -- a number constant: 234, 0xff Type { Function },
Boolean { Constant }, -- a boolean constant: TRUE, false
Float { Constant }, -- a floating point constant: 2.3e10
Identifier { }, -- (preferred) any variable name Statement { Keyword },
Type { Function }, -- (preferred) int, long, char, etc. Conditional { Keyword },
Repeat { Keyword },
Label { Keyword },
Operator { },
Exception { Keyword },
Statement { Keyword }, -- (preferred) any statement PreProc { Constant },
Conditional { Keyword }, -- if, then, else, endif, switch, etc. Include { Constant },
Repeat { Keyword }, -- for, do, while, etc. Define { Constant },
Label { Keyword }, -- case, default, etc. Macro { Constant },
Operator { }, -- "sizeof", "+", "*", etc. PreCondit { Constant },
Exception { Keyword }, -- try, catch, throw
PreProc { Constant }, -- (preferred) generic Preprocessor StorageClass { Keyword },
Include { Constant }, -- preprocessor #include Structure { Keyword },
Define { Constant }, -- preprocessor #define Typedef { },
Macro { Constant }, -- same as Define
PreCondit { Constant }, -- preprocessor #if, #else, #endif, etc.
StorageClass { Keyword }, -- static, register, volatile, etc. Special { },
Structure { Keyword }, -- struct, union, enum, etc. SpecialChar { },
Typedef { }, -- A typedef Tag { },
Delimiter { },
SpecialComment { },
Debug { },
Special { }, -- (preferred) any special symbol Underlined { gui = "underline" },
SpecialChar { }, -- special character in a constant
Tag { }, -- you can use CTRL-] on this
Delimiter { }, -- character that needs attention
SpecialComment { }, -- special things inside a comment
Debug { }, -- debugging statements
Underlined { gui = "underline" }, -- (preferred) text that stands out, HTML links
Bold { gui = "bold" }, Bold { gui = "bold" },
Italic { gui = "italic" }, Italic { gui = "italic" },
-- ("Ignore", below, may be invisible...) -- ("Ignore", below, may be invisible...)
-- Ignore { }, -- (preferred) left blank, hidden |hl-Ignore| -- Ignore { },
Todo { }, -- (preferred) anything that needs extra attention; mostly the keywords TODO FIXME and XXX Todo { fg = Search.bg, gui = "bold" },
-- These groups are for the native LSP client. Some other LSP clients may LspDiagnosticsDefaultError { Error, bg = CursorLine.bg },
-- use these groups, or use their own. Consult your LSP client's LspDiagnosticsDefaultWarning { WarningMsg, bg = CursorLine.bg },
-- documentation. LspDiagnosticsDefaultInformation { bg = CursorLine.bg },
LspDiagnosticsDefaultHint { WarningMsg, bg = CursorLine.bg },
-- LspReferenceText { }, -- used for highlighting "text" references LspDiagnosticsSignError { fg = Error.fg, bg = CursorLine.bg },
-- LspReferenceRead { }, -- used for highlighting "read" references LspDiagnosticsSignWarning { fg = WarningMsg.fg, bg = CursorLine.bg },
-- LspReferenceWrite { }, -- used for highlighting "write" references LspDiagnosticsSignInformation { bg = CursorLine.bg },
LspDiagnosticsSignHint { fg = WarningMsg.fg, bg = CursorLine.bg },
LspDiagnosticsDefaultError { Error, bg = CursorLine.bg }, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline)
LspDiagnosticsDefaultWarning { WarningMsg, bg = CursorLine.bg }, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline)
LspDiagnosticsDefaultInformation { }, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline)
LspDiagnosticsDefaultHint { WarningMsg, bg = CursorLine.bg }, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline)
-- LspDiagnosticsVirtualTextError { }, -- Used for "Error" diagnostic virtual text
-- LspDiagnosticsVirtualTextWarning { }, -- Used for "Warning" diagnostic virtual text
-- LspDiagnosticsVirtualTextInformation { }, -- Used for "Information" diagnostic virtual text
-- LspDiagnosticsVirtualTextHint { }, -- Used for "Hint" diagnostic virtual text
-- LspDiagnosticsUnderlineError { }, -- Used to underline "Error" diagnostics
-- LspDiagnosticsUnderlineWarning { }, -- Used to underline "Warning" diagnostics
-- LspDiagnosticsUnderlineInformation { }, -- Used to underline "Information" diagnostics
-- LspDiagnosticsUnderlineHint { }, -- Used to underline "Hint" diagnostics
-- 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
LspDiagnosticsSignError { fg = Error.fg, bg = CursorLine.bg }, -- Used for "Error" signs in sign column
LspDiagnosticsSignWarning { fg = WarningMsg.fg, bg = CursorLine.bg }, -- Used for "Warning" signs in sign column
-- LspDiagnosticsSignInformation { }, -- Used for "Information" signs in sign column
LspDiagnosticsSignHint { fg = WarningMsg.fg, bg = CursorLine.bg }, -- Used for "Hint" signs in sign column
-- These groups are for the neovim tree-sitter highlights.
-- As of writing, tree-sitter support is a WIP, group names may change.
-- By default, most of these groups link to an appropriate Vim group,
-- TSError -> Error for example, so you do not have to define these unless
-- you explicitly want to support Treesitter's improved syntax awareness.
-- TSAnnotation { }; -- For C++/Dart attributes, annotations that can be attached to the code to denote some kind of meta information.
-- TSAttribute { }; -- (unstable) TODO: docs
-- TSBoolean { }; -- For booleans.
-- TSCharacter { }; -- For characters.
-- TSComment { }; -- For comment blocks.
-- TSConstructor { }; -- For constructor calls and definitions: ` { }` in Lua, and Java constructors.
-- TSConditional { }; -- For keywords related to conditionnals.
-- TSConstant { }; -- For constants
-- TSConstBuiltin { }; -- For constant that are built in the language: `nil` in Lua.
-- TSConstMacro { }; -- For constants that are defined by macros: `NULL` in C.
-- TSError { }; -- For syntax/parser errors.
-- TSException { }; -- For exception related keywords.
-- TSField { }; -- For fields.
-- TSFloat { }; -- For floats.
-- TSFunction { }; -- For function (calls and definitions).
-- TSFuncBuiltin { }; -- For builtin functions: `table.insert` in Lua.
-- TSFuncMacro { }; -- For macro defined fuctions (calls and definitions): each `macro_rules` in Rust.
-- TSInclude { }; -- For includes: `#include` in C, `use` or `extern crate` in Rust, or `require` in Lua.
-- TSKeyword { }; -- For keywords that don't fall in previous categories.
-- TSKeywordFunction { }; -- For keywords used to define a fuction.
-- TSLabel { }; -- For labels: `label:` in C and `:label:` in Lua.
-- TSMethod { }; -- For method calls and definitions.
-- TSNamespace { }; -- For identifiers referring to modules and namespaces.
-- TSNone { }; -- TODO: docs
-- TSNumber { }; -- For all numbers
-- TSOperator { }; -- For any operator: `+`, but also `->` and `*` in C.
-- TSParameter { }; -- For parameters of a function.
-- TSParameterReference { }; -- For references to parameters of a function.
-- TSProperty { }; -- Same as `TSField`.
-- TSPunctDelimiter { }; -- For delimiters ie: `.`
-- TSPunctBracket { }; -- For brackets and parens.
-- TSPunctSpecial { }; -- For special punctutation that does not fall in the catagories before.
-- TSRepeat { }; -- For keywords related to loops.
-- TSString { }; -- For strings.
-- TSStringRegex { }; -- For regexes.
-- TSStringEscape { }; -- For escape characters within a string.
-- TSSymbol { }; -- For identifiers referring to symbols or atoms.
-- TSType { }; -- For types.
-- TSTypeBuiltin { }; -- For builtin types.
-- TSVariable { }; -- Any variable name that does not have another highlight.
-- TSVariableBuiltin { }; -- Variable names that are defined by the languages, like `this` or `self`.
-- TSTag { }; -- Tags like html tag names.
-- TSTagDelimiter { }; -- Tag delimiter like `<` `>` `/`
-- TSText { }; -- For strings considered text in a markup language.
-- TSEmphasis { }; -- For text to be represented with emphasis.
-- TSUnderline { }; -- For text to be represented with an underline.
-- TSStrike { }; -- For strikethrough text.
-- TSTitle { }; -- Text that is part of a title.
-- TSLiteral { }; -- Literal text.
-- TSURI { }; -- Any URI like a link or email.
-- ftype specific stuff
csGeneric { Function },
} }
end) end)