2021-02-07 20:43:35 +11:00
--
-- 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
--
-- This is a starter colorscheme for use with Lush,
-- for usage guides, see :h lush or :LushRunTutorial
--
-- Note: Because this is lua file, vim will append your file to the runtime,
-- which means you can require(...) it in other lua code (this is useful),
-- but you should also take care not to conflict with other libraries.
--
-- (This is a lua quirk, as it has somewhat poor support for namespacing.)
--
-- Basically, name your file,
--
-- "super_theme/lua/lush_theme/super_theme_dark.lua",
--
-- not,
--
-- "super_theme/lua/dark.lua".
--
-- With that caveat out of the way...
--
-- Enable lush.ify on this file, run:
--
-- `:Lushify`
--
-- or
--
-- `:lua require('lush').ify()`
2021-08-20 16:05:43 +08:00
local lush = require " lush "
2021-08-22 13:16:14 +08:00
local hsluv = lush.hsluv
2021-02-07 20:43:35 +11:00
2021-08-22 13:16:14 +08:00
local sand = hsluv ( 39 , 12 , 90 )
local stone = hsluv ( 215 , 22 , 8 )
local leaf = hsluv ( 103 , 70 , 46 )
local water = hsluv ( 236 , 84 , 49 )
local rose = hsluv ( 5 , 76 , 46 )
local wood = hsluv ( 28 , 100 , 40 )
2021-02-07 20:43:35 +11:00
2021-08-20 16:05:43 +08:00
local theme = lush ( function ( )
return {
-- The following are all the Neovim default highlight groups from the docs
-- as of 0.5.0-nightly-446, to aid your theme creation. Your themes should
-- probably style all of these at a bare minimum.
--
-- Referenced/linked groups must come before being referenced/lined,
-- so the order shown ((mostly) alphabetical) is likely
-- not the order you will end up with.
--
-- You can uncomment these and leave them empty to disable any
-- styling for that group (meaning they mostly get styled as Normal)
-- or leave them commented to apply vims default colouring or linking.
2021-02-07 20:43:35 +11:00
2021-08-22 13:16:14 +08:00
Normal { bg = sand , fg = stone.lighten ( 2 ) . saturate ( 80 ) } , -- normal text
2021-08-20 18:08:20 +08:00
2021-08-22 13:16:14 +08:00
Underlined { gui = " underline " } , -- (preferred) text that stands out, HTML links
Bold { gui = " bold " } ,
Italic { gui = " italic " } ,
Error { fg = rose } , -- (preferred) any erroneous construct
ErrorMsg { Error } , -- error messages on the command line
WarningMsg { fg = wood } , -- warning messages
Comment { fg = sand.darken ( 40 ) . desaturate ( 30 ) , gui = " italic " } , -- any comment
ColorColumn { bg = sand.darken ( 20 ) } , -- used for the columns set with 'colorcolumn'
2021-08-20 16:05:43 +08:00
-- Conceal { }, -- placeholder characters substituted for concealed text (see 'conceallevel')
2021-08-22 13:16:14 +08:00
-- Cursor { bg = 'blue' }, -- character under the cursor
-- lCursor { }, -- the character under the cursor when |language-mapping| is used (see 'guicursor')
-- CursorIM { }, -- like Cursor, but used when in IME mode |CursorIM|
CursorLine { bg = sand.darken ( 4 ) } , -- Screen-line at the cursor, when 'cursorline' is set. Low-priority if foreground (ctermfg OR guifg) is not set.
CursorColumn { CursorLine } , -- Screen-column at the cursor, when 'cursorcolumn' is set.
Directory { gui = " bold " } , -- directory names (and other special names in listings)
DiffAdd { bg = leaf , fg = sand } , -- diff mode: Added line |diff.txt|
DiffChange { bg = water , fg = sand.lighten ( 20 ) } , -- diff mode: Changed line |diff.txt|
DiffDelete { bg = rose , fg = sand.lighten ( 20 ) } , -- diff mode: Deleted line |diff.txt|
DiffText { bg = water.lighten ( 16 ) , fg = sand.lighten ( 20 ) } , -- diff mode: Changed text within a changed line |diff.txt|
2021-08-20 16:05:43 +08:00
-- TermCursor { }, -- cursor in a focused terminal
-- TermCursorNC { }, -- cursor in an unfocused terminal
2021-08-22 13:16:14 +08:00
VertSplit { bg = sand.darken ( 18 ) } , -- the column separating vertically split windows
2021-08-20 16:05:43 +08:00
-- Folded { }, -- line used for closed folds
-- FoldColumn { }, -- 'foldcolumn'
2021-08-22 13:16:14 +08:00
SignColumn { bg = sand.darken ( 6 ) , fg = stone.lighten ( 42 ) } , -- column where |signs| are displayed
2021-08-20 16:05:43 +08:00
-- IncSearch { }, -- 'incsearch' highlighting; also used for the text replaced with ":s///c"
-- Substitute { }, -- |:substitute| replacement text highlighting
2021-08-20 18:08:20 +08:00
LineNr { SignColumn } , -- Line number for ":number" and ":#" commands, and when 'number' or 'relativenumber' option is set.
2021-08-22 13:16:14 +08:00
CursorLineNr { LineNr , fg = stone.darken ( 50 ) , gui = " bold " } , -- Like LineNr when 'cursorline' or 'relativenumber' is set for the cursor line.
MatchParen { } , -- The character under the cursor or just before it, if it is a paired bracket, and its match. |pi_paren.txt|
2021-08-20 16:05:43 +08:00
-- ModeMsg { }, -- 'showmode' message (e.g., "-- INSERT -- ")
-- MsgArea { }, -- Area for messages and cmdline
-- MsgSeparator { }, -- Separator for scrolled messages, `msgsep` flag of 'display'
-- MoreMsg { }, -- |more-prompt|
2021-08-22 13:16:14 +08:00
NormalFloat { bg = sand.darken ( 8 ) } , -- Normal text in floating windows.
FloatBorder { fg = sand.darken ( 20 ) } , -- Normal text in floating windows.
2021-08-20 16:05:43 +08:00
-- NormalNC { }, -- normal text in non-current windows
2021-08-22 13:16:14 +08:00
Pmenu { bg = sand.darken ( 10 ) } , -- Popup menu: normal item.
PmenuSel { bg = sand.darken ( 20 ) } , -- Popup menu: selected item.
PmenuSbar { bg = sand.darken ( 30 ) } , -- Popup menu: scrollbar.
PmenuThumb { bg = sand.abs_lighten ( 30 ) } , -- Popup menu: Thumb of the scrollbar.
2021-08-20 16:05:43 +08:00
-- Question { }, -- |hit-enter| prompt and yes/no questions
-- QuickFixLine { }, -- Current |quickfix| item in the quickfix window. Combined with |hl-CursorLine| when the cursor is there.
-- Search { }, -- Last search pattern highlighting (see 'hlsearch'). Also used for similar items that need to stand out.
-- SpecialKey { }, -- Unprintable characters: text displayed differently from what it really is. But not 'listchars' whitespace. |hl-Whitespace|
2021-08-22 13:16:14 +08:00
SpellBad { fg = Error.fg . desaturate ( 40 ) , gui = " undercurl " , guisp = Error.fg } , -- Word that is not recognized by the spellchecker. |spell| Combined with the highlighting used otherwise.
SpellCap { SpellBad , guisp = Error.fg . lighten ( 10 ) } , -- Word that should start with a capital. |spell| Combined with the highlighting used otherwise.
SpellLocal { SpellCap } , -- Word that is recognized by the spellchecker as one that is used in another region. |spell| Combined with the highlighting used otherwise.
SpellRare { SpellBad , guisp = wood } , -- Word that is recognized by the spellchecker as one that is hardly ever used. |spell| Combined with the highlighting used otherwise.
StatusLine { bg = sand.darken ( 20 ) } , -- status line of current window
StatusLineNC { bg = sand.darken ( 10 ) , fg = stone.lighten ( 30 ) } , -- status lines of not-current windows Note: if this is equal to "StatusLine" Vim will use "^^^" in the status line of the current window.
2021-08-20 16:05:43 +08:00
-- TabLine { }, -- tab pages line, not active tab page label
-- TabLineFill { }, -- tab pages line, where there are no labels
-- TabLineSel { }, -- tab pages line, active tab page label
2021-08-22 13:16:14 +08:00
Title { Bold } , -- titles for output from ":set all", ":autocmd" etc.
Visual { bg = stone.lighten ( 40 ) , fg = sand } , -- Visual mode selection
2021-08-20 16:05:43 +08:00
-- VisualNOS { }, -- Visual mode selection when vim is "Not Owning the Selection".
2021-08-22 13:16:14 +08:00
NonText { fg = sand.darken ( 20 ) } , -- '@' 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|.
Whitespace { NonText } , -- "nbsp", "space", "tab" and "trail" in 'listchars'
EndOfBuffer { NonText } , -- filler lines (~) after the end of the buffer. By default, this is highlighted like |hl-NonText|.
2021-08-20 16:05:43 +08:00
-- WildMenu { }, -- current match in 'wildmenu' completion
2021-02-07 20:43:35 +11:00
2021-08-20 16:05:43 +08:00
-- These groups are not listed as default vim groups,
-- but they are defacto standard group names for syntax highlighting.
-- commented out groups should chain up to their "preferred" group by
-- default,
-- Uncomment and edit if you want more specific syntax highlighting.
2021-02-07 20:43:35 +11:00
2021-08-22 13:16:14 +08:00
Constant { fg = stone.lighten ( 30 ) } , -- (preferred) any constant
String { fg = Constant.fg , gui = " italic " } , -- a string constant: "this is a string"
2021-08-20 16:05:43 +08:00
-- Character { }, -- a character constant: 'c', '\n'
-- Number { }, -- a number constant: 234, 0xff
-- Boolean { }, -- a boolean constant: TRUE, false
-- Float { }, -- a floating point constant: 2.3e10
2021-02-07 20:43:35 +11:00
2021-08-22 13:16:14 +08:00
Identifier { fg = stone.lighten ( 20 ) } , -- (preferred) any variable name
Function { fg = stone.lighten ( 20 ) } , -- function name (also: methods for classes)
2021-02-07 20:43:35 +11:00
2021-08-22 13:16:14 +08:00
Statement { gui = " bold " } , -- (preferred) any statement
2021-08-20 16:05:43 +08:00
-- Conditional { }, -- if, then, else, endif, switch, etc.
-- Repeat { }, -- for, do, while, etc.
-- Label { }, -- case, default, etc.
-- Operator { }, -- "sizeof", "+", "*", etc.
-- Keyword { }, -- any other keyword
-- Exception { }, -- try, catch, throw
2021-02-07 20:43:35 +11:00
2021-08-22 13:16:14 +08:00
PreProc { Statement } , -- (preferred) generic Preprocessor
2021-08-20 16:05:43 +08:00
-- Include { }, -- preprocessor #include
-- Define { }, -- preprocessor #define
-- Macro { }, -- same as Define
-- PreCondit { }, -- preprocessor #if, #else, #endif, etc.
2021-02-07 20:43:35 +11:00
2021-08-22 13:16:14 +08:00
Type { fg = sand.darken ( 60 ) } , -- (preferred) int, long, char, etc.
2021-08-20 16:05:43 +08:00
-- StorageClass { }, -- static, register, volatile, etc.
-- Structure { }, -- struct, union, enum, etc.
-- Typedef { }, -- A typedef
2021-02-07 20:43:35 +11:00
2021-08-20 18:08:20 +08:00
Special { fg = stone.lighten ( 20 ) } , -- (preferred) any special symbol
2021-08-20 16:05:43 +08:00
-- SpecialChar { }, -- special character in a constant
-- Tag { }, -- you can use CTRL-] on this
2021-08-22 13:16:14 +08:00
Delimiter { fg = sand.darken ( 40 ) } , -- character that needs attention
SpecialComment { Comment , gui = " bold " } , -- special things inside a comment
2021-08-20 16:05:43 +08:00
-- Debug { }, -- debugging statements
2021-02-07 20:43:35 +11:00
2021-08-20 16:05:43 +08:00
-- ("Ignore", below, may be invisible...)
-- Ignore { }, -- (preferred) left blank, hidden |hl-Ignore|
2021-02-07 20:43:35 +11:00
2021-08-22 13:16:14 +08:00
Todo { gui = " bold,italic " } , -- (preferred) anything that needs extra attention; mostly the keywords TODO FIXME and XXX
2021-02-07 20:43:35 +11:00
2021-08-20 16:05:43 +08:00
-- These groups are for the native LSP client. Some other LSP clients may
-- use these groups, or use their own. Consult your LSP client's
-- documentation.
2021-02-07 20:43:35 +11:00
2021-08-20 16:05:43 +08:00
-- LspReferenceText { }, -- used for highlighting "text" references
-- LspReferenceRead { }, -- used for highlighting "read" references
-- LspReferenceWrite { }, -- used for highlighting "write" references
2021-02-07 20:43:35 +11:00
2021-08-20 16:05:43 +08:00
-- LspDiagnosticsDefaultError { }, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline)
-- LspDiagnosticsDefaultWarning { }, -- 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 { }, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline)
2021-02-07 20:43:35 +11:00
2021-08-20 16:05:43 +08:00
-- 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
2021-02-07 20:43:35 +11:00
2021-08-20 16:05:43 +08:00
-- LspDiagnosticsUnderlineError { }, -- Used to underline "Error" diagnostics
-- LspDiagnosticsUnderlineWarning { }, -- Used to underline "Warning" diagnostics
-- LspDiagnosticsUnderlineInformation { }, -- Used to underline "Information" diagnostics
-- LspDiagnosticsUnderlineHint { }, -- Used to underline "Hint" diagnostics
2021-02-07 20:43:35 +11:00
2021-08-20 16:05:43 +08:00
-- 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
2021-02-07 20:43:35 +11:00
2021-08-20 16:05:43 +08:00
-- LspDiagnosticsSignError { }, -- Used for "Error" signs in sign column
-- LspDiagnosticsSignWarning { }, -- Used for "Warning" signs in sign column
-- LspDiagnosticsSignInformation { }, -- Used for "Information" signs in sign column
-- LspDiagnosticsSignHint { }, -- Used for "Hint" signs in sign column
2021-02-07 20:43:35 +11:00
2021-08-20 16:05:43 +08:00
-- 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.
2021-02-07 20:43:35 +11:00
2021-08-20 16:05:43 +08:00
-- 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.
2021-08-22 13:16:14 +08:00
TSVariable { Identifier } , -- Any variable name that does not have another highlight.
2021-08-20 16:05:43 +08:00
-- TSVariableBuiltin { }; -- Variable names that are defined by the languages, like `this` or `self`.
2021-02-07 20:43:35 +11:00
2021-08-20 16:05:43 +08:00
-- 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.
2021-08-22 13:16:14 +08:00
GitSignsAdd { bg = SignColumn.bg , fg = leaf } , -- Text that is part of a title.
GitSignsChange { bg = SignColumn.bg , fg = DiffChange.bg } , -- Literal text.
GitSignsDelete { bg = SignColumn.bg , fg = DiffDelete.bg } , -- Any URI like a link or email.
2021-08-20 16:05:43 +08:00
}
2021-02-07 20:43:35 +11:00
end )
-- return our parsed theme for extension or use else where.
return theme
-- vi:nowrap