lush_template.lua 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  1. --
  2. -- Built with,
  3. --
  4. -- ,gggg,
  5. -- d8" "8I ,dPYb,
  6. -- 88 ,dP IP'`Yb
  7. -- 8888888P" I8 8I
  8. -- 88 I8 8'
  9. -- 88 gg gg ,g, I8 dPgg,
  10. -- ,aa,_88 I8 8I ,8'8, I8dP" "8I
  11. -- dP" "88P I8, ,8I ,8' Yb I8P I8
  12. -- Yb,_,d88b,,_ ,d8b, ,d8b,,8'_ 8) ,d8 I8,
  13. -- "Y8P" "Y888888P'"Y88P"`Y8P' "YY8P8P88P `Y8
  14. --
  15. -- This is a starter colorscheme for use with Lush,
  16. -- for usage guides, see :h lush or :LushRunTutorial
  17. --
  18. -- Note: Because this is lua file, vim will append your file to the runtime,
  19. -- which means you can require(...) it in other lua code (this is useful),
  20. -- but you should also take care not to conflict with other libraries.
  21. --
  22. -- (This is a lua quirk, as it has somewhat poor support for namespacing.)
  23. --
  24. -- Basically, name your file,
  25. --
  26. -- "super_theme/lua/lush_theme/super_theme_dark.lua",
  27. --
  28. -- not,
  29. --
  30. -- "super_theme/lua/dark.lua".
  31. --
  32. -- With that caveat out of the way...
  33. --
  34. -- Enable lush.ify on this file, run:
  35. --
  36. -- `:Lushify`
  37. --
  38. -- or
  39. --
  40. -- `:lua require('lush').ify()`
  41. local lush = require "lush"
  42. local hsl = lush.hsl
  43. local theme = lush(function()
  44. return {
  45. -- The following are all the Neovim default highlight groups from the docs
  46. -- as of 0.5.0-nightly-446, to aid your theme creation. Your themes should
  47. -- probably style all of these at a bare minimum.
  48. --
  49. -- Referenced/linked groups must come before being referenced/lined,
  50. -- so the order shown ((mostly) alphabetical) is likely
  51. -- not the order you will end up with.
  52. --
  53. -- You can uncomment these and leave them empty to disable any
  54. -- styling for that group (meaning they mostly get styled as Normal)
  55. -- or leave them commented to apply vims default colouring or linking.
  56. -- Comment { }, -- any comment
  57. -- ColorColumn { }, -- used for the columns set with 'colorcolumn'
  58. -- Conceal { }, -- placeholder characters substituted for concealed text (see 'conceallevel')
  59. -- Cursor { }, -- character under the cursor
  60. -- lCursor { }, -- the character under the cursor when |language-mapping| is used (see 'guicursor')
  61. -- CursorIM { }, -- like Cursor, but used when in IME mode |CursorIM|
  62. -- CursorColumn { }, -- Screen-column at the cursor, when 'cursorcolumn' is set.
  63. -- CursorLine { }, -- Screen-line at the cursor, when 'cursorline' is set. Low-priority if foreground (ctermfg OR guifg) is not set.
  64. -- Directory { }, -- directory names (and other special names in listings)
  65. -- DiffAdd { }, -- diff mode: Added line |diff.txt|
  66. -- DiffChange { }, -- diff mode: Changed line |diff.txt|
  67. -- DiffDelete { }, -- diff mode: Deleted line |diff.txt|
  68. -- DiffText { }, -- diff mode: Changed text within a changed line |diff.txt|
  69. -- EndOfBuffer { }, -- filler lines (~) after the end of the buffer. By default, this is highlighted like |hl-NonText|.
  70. -- TermCursor { }, -- cursor in a focused terminal
  71. -- TermCursorNC { }, -- cursor in an unfocused terminal
  72. -- ErrorMsg { }, -- error messages on the command line
  73. -- VertSplit { }, -- the column separating vertically split windows
  74. -- Folded { }, -- line used for closed folds
  75. -- FoldColumn { }, -- 'foldcolumn'
  76. -- SignColumn { }, -- column where |signs| are displayed
  77. -- IncSearch { }, -- 'incsearch' highlighting; also used for the text replaced with ":s///c"
  78. -- Substitute { }, -- |:substitute| replacement text highlighting
  79. -- LineNr { }, -- Line number for ":number" and ":#" commands, and when 'number' or 'relativenumber' option is set.
  80. -- CursorLineNr { }, -- Like LineNr when 'cursorline' or 'relativenumber' is set for the cursor line.
  81. -- MatchParen { }, -- The character under the cursor or just before it, if it is a paired bracket, and its match. |pi_paren.txt|
  82. -- ModeMsg { }, -- 'showmode' message (e.g., "-- INSERT -- ")
  83. -- MsgArea { }, -- Area for messages and cmdline
  84. -- MsgSeparator { }, -- Separator for scrolled messages, `msgsep` flag of 'display'
  85. -- MoreMsg { }, -- |more-prompt|
  86. -- NonText { }, -- '@' 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|.
  87. -- Normal { }, -- normal text
  88. -- NormalFloat { }, -- Normal text in floating windows.
  89. -- NormalNC { }, -- normal text in non-current windows
  90. -- Pmenu { }, -- Popup menu: normal item.
  91. -- PmenuSel { }, -- Popup menu: selected item.
  92. -- PmenuSbar { }, -- Popup menu: scrollbar.
  93. -- PmenuThumb { }, -- Popup menu: Thumb of the scrollbar.
  94. -- Question { }, -- |hit-enter| prompt and yes/no questions
  95. -- QuickFixLine { }, -- Current |quickfix| item in the quickfix window. Combined with |hl-CursorLine| when the cursor is there.
  96. -- Search { }, -- Last search pattern highlighting (see 'hlsearch'). Also used for similar items that need to stand out.
  97. -- SpecialKey { }, -- Unprintable characters: text displayed differently from what it really is. But not 'listchars' whitespace. |hl-Whitespace|
  98. -- SpellBad { }, -- Word that is not recognized by the spellchecker. |spell| Combined with the highlighting used otherwise.
  99. -- SpellCap { }, -- Word that should start with a capital. |spell| Combined with the highlighting used otherwise.
  100. -- SpellLocal { }, -- Word that is recognized by the spellchecker as one that is used in another region. |spell| Combined with the highlighting used otherwise.
  101. -- SpellRare { }, -- Word that is recognized by the spellchecker as one that is hardly ever used. |spell| Combined with the highlighting used otherwise.
  102. -- StatusLine { }, -- status line of current window
  103. -- 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.
  104. -- TabLine { }, -- tab pages line, not active tab page label
  105. -- TabLineFill { }, -- tab pages line, where there are no labels
  106. -- TabLineSel { }, -- tab pages line, active tab page label
  107. -- Title { }, -- titles for output from ":set all", ":autocmd" etc.
  108. -- Visual { }, -- Visual mode selection
  109. -- VisualNOS { }, -- Visual mode selection when vim is "Not Owning the Selection".
  110. -- WarningMsg { }, -- warning messages
  111. -- Whitespace { }, -- "nbsp", "space", "tab" and "trail" in 'listchars'
  112. -- WildMenu { }, -- current match in 'wildmenu' completion
  113. -- These groups are not listed as default vim groups,
  114. -- but they are defacto standard group names for syntax highlighting.
  115. -- commented out groups should chain up to their "preferred" group by
  116. -- default,
  117. -- Uncomment and edit if you want more specific syntax highlighting.
  118. -- Constant { }, -- (preferred) any constant
  119. -- String { }, -- a string constant: "this is a string"
  120. -- Character { }, -- a character constant: 'c', '\n'
  121. -- Number { }, -- a number constant: 234, 0xff
  122. -- Boolean { }, -- a boolean constant: TRUE, false
  123. -- Float { }, -- a floating point constant: 2.3e10
  124. -- Identifier { }, -- (preferred) any variable name
  125. -- Function { }, -- function name (also: methods for classes)
  126. -- Statement { }, -- (preferred) any statement
  127. -- Conditional { }, -- if, then, else, endif, switch, etc.
  128. -- Repeat { }, -- for, do, while, etc.
  129. -- Label { }, -- case, default, etc.
  130. -- Operator { }, -- "sizeof", "+", "*", etc.
  131. -- Keyword { }, -- any other keyword
  132. -- Exception { }, -- try, catch, throw
  133. -- PreProc { }, -- (preferred) generic Preprocessor
  134. -- Include { }, -- preprocessor #include
  135. -- Define { }, -- preprocessor #define
  136. -- Macro { }, -- same as Define
  137. -- PreCondit { }, -- preprocessor #if, #else, #endif, etc.
  138. -- Type { }, -- (preferred) int, long, char, etc.
  139. -- StorageClass { }, -- static, register, volatile, etc.
  140. -- Structure { }, -- struct, union, enum, etc.
  141. -- Typedef { }, -- A typedef
  142. -- Special { }, -- (preferred) any special symbol
  143. -- SpecialChar { }, -- special character in a constant
  144. -- Tag { }, -- you can use CTRL-] on this
  145. -- Delimiter { }, -- character that needs attention
  146. -- SpecialComment { }, -- special things inside a comment
  147. -- Debug { }, -- debugging statements
  148. -- Underlined { gui = "underline" }, -- (preferred) text that stands out, HTML links
  149. -- Bold { gui = "bold" },
  150. -- Italic { gui = "italic" },
  151. -- ("Ignore", below, may be invisible...)
  152. -- Ignore { }, -- (preferred) left blank, hidden |hl-Ignore|
  153. -- Error { }, -- (preferred) any erroneous construct
  154. -- Todo { }, -- (preferred) anything that needs extra attention; mostly the keywords TODO FIXME and XXX
  155. -- These groups are for the native LSP client. Some other LSP clients may
  156. -- use these groups, or use their own. Consult your LSP client's
  157. -- documentation.
  158. -- LspReferenceText { }, -- used for highlighting "text" references
  159. -- LspReferenceRead { }, -- used for highlighting "read" references
  160. -- LspReferenceWrite { }, -- used for highlighting "write" references
  161. -- LspDiagnosticsDefaultError { }, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline)
  162. -- LspDiagnosticsDefaultWarning { }, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline)
  163. -- LspDiagnosticsDefaultInformation { }, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline)
  164. -- LspDiagnosticsDefaultHint { }, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline)
  165. -- LspDiagnosticsVirtualTextError { }, -- Used for "Error" diagnostic virtual text
  166. -- LspDiagnosticsVirtualTextWarning { }, -- Used for "Warning" diagnostic virtual text
  167. -- LspDiagnosticsVirtualTextInformation { }, -- Used for "Information" diagnostic virtual text
  168. -- LspDiagnosticsVirtualTextHint { }, -- Used for "Hint" diagnostic virtual text
  169. -- LspDiagnosticsUnderlineError { }, -- Used to underline "Error" diagnostics
  170. -- LspDiagnosticsUnderlineWarning { }, -- Used to underline "Warning" diagnostics
  171. -- LspDiagnosticsUnderlineInformation { }, -- Used to underline "Information" diagnostics
  172. -- LspDiagnosticsUnderlineHint { }, -- Used to underline "Hint" diagnostics
  173. -- LspDiagnosticsFloatingError { }, -- Used to color "Error" diagnostic messages in diagnostics float
  174. -- LspDiagnosticsFloatingWarning { }, -- Used to color "Warning" diagnostic messages in diagnostics float
  175. -- LspDiagnosticsFloatingInformation { }, -- Used to color "Information" diagnostic messages in diagnostics float
  176. -- LspDiagnosticsFloatingHint { }, -- Used to color "Hint" diagnostic messages in diagnostics float
  177. -- LspDiagnosticsSignError { }, -- Used for "Error" signs in sign column
  178. -- LspDiagnosticsSignWarning { }, -- Used for "Warning" signs in sign column
  179. -- LspDiagnosticsSignInformation { }, -- Used for "Information" signs in sign column
  180. -- LspDiagnosticsSignHint { }, -- Used for "Hint" signs in sign column
  181. -- These groups are for the neovim tree-sitter highlights.
  182. -- As of writing, tree-sitter support is a WIP, group names may change.
  183. -- By default, most of these groups link to an appropriate Vim group,
  184. -- TSError -> Error for example, so you do not have to define these unless
  185. -- you explicitly want to support Treesitter's improved syntax awareness.
  186. -- TSAnnotation { }; -- For C++/Dart attributes, annotations that can be attached to the code to denote some kind of meta information.
  187. -- TSAttribute { }; -- (unstable) TODO: docs
  188. -- TSBoolean { }; -- For booleans.
  189. -- TSCharacter { }; -- For characters.
  190. -- TSComment { }; -- For comment blocks.
  191. -- TSConstructor { }; -- For constructor calls and definitions: ` { }` in Lua, and Java constructors.
  192. -- TSConditional { }; -- For keywords related to conditionnals.
  193. -- TSConstant { }; -- For constants
  194. -- TSConstBuiltin { }; -- For constant that are built in the language: `nil` in Lua.
  195. -- TSConstMacro { }; -- For constants that are defined by macros: `NULL` in C.
  196. -- TSError { }; -- For syntax/parser errors.
  197. -- TSException { }; -- For exception related keywords.
  198. -- TSField { }; -- For fields.
  199. -- TSFloat { }; -- For floats.
  200. -- TSFunction { }; -- For function (calls and definitions).
  201. -- TSFuncBuiltin { }; -- For builtin functions: `table.insert` in Lua.
  202. -- TSFuncMacro { }; -- For macro defined fuctions (calls and definitions): each `macro_rules` in Rust.
  203. -- TSInclude { }; -- For includes: `#include` in C, `use` or `extern crate` in Rust, or `require` in Lua.
  204. -- TSKeyword { }; -- For keywords that don't fall in previous categories.
  205. -- TSKeywordFunction { }; -- For keywords used to define a fuction.
  206. -- TSLabel { }; -- For labels: `label:` in C and `:label:` in Lua.
  207. -- TSMethod { }; -- For method calls and definitions.
  208. -- TSNamespace { }; -- For identifiers referring to modules and namespaces.
  209. -- TSNone { }; -- TODO: docs
  210. -- TSNumber { }; -- For all numbers
  211. -- TSOperator { }; -- For any operator: `+`, but also `->` and `*` in C.
  212. -- TSParameter { }; -- For parameters of a function.
  213. -- TSParameterReference { }; -- For references to parameters of a function.
  214. -- TSProperty { }; -- Same as `TSField`.
  215. -- TSPunctDelimiter { }; -- For delimiters ie: `.`
  216. -- TSPunctBracket { }; -- For brackets and parens.
  217. -- TSPunctSpecial { }; -- For special punctutation that does not fall in the catagories before.
  218. -- TSRepeat { }; -- For keywords related to loops.
  219. -- TSString { }; -- For strings.
  220. -- TSStringRegex { }; -- For regexes.
  221. -- TSStringEscape { }; -- For escape characters within a string.
  222. -- TSSymbol { }; -- For identifiers referring to symbols or atoms.
  223. -- TSType { }; -- For types.
  224. -- TSTypeBuiltin { }; -- For builtin types.
  225. -- TSVariable { }; -- Any variable name that does not have another highlight.
  226. -- TSVariableBuiltin { }; -- Variable names that are defined by the languages, like `this` or `self`.
  227. -- TSTag { }; -- Tags like html tag names.
  228. -- TSTagDelimiter { }; -- Tag delimiter like `<` `>` `/`
  229. -- TSText { }; -- For strings considered text in a markup language.
  230. -- TSEmphasis { }; -- For text to be represented with emphasis.
  231. -- TSUnderline { }; -- For text to be represented with an underline.
  232. -- TSStrike { }; -- For strikethrough text.
  233. -- TSTitle { }; -- Text that is part of a title.
  234. -- TSLiteral { }; -- Literal text.
  235. -- TSURI { }; -- Any URI like a link or email.
  236. }
  237. end)
  238. -- return our parsed theme for extension or use else where.
  239. return theme
  240. -- vi:nowrap