update - looking good

dev
Pocco81 3 years ago
parent 346df80325
commit 2b30a4a997

@ -1,26 +1,26 @@
local color_palette = { local color_palette = {
rosewater = "#F5E0DC", -- Rosewater rosewater = "#F5E0DC", -- Rosewater
flamingo = "#F2CDCD", -- Flamingo flamingo = "#F2CDCD", -- Flamingo
mauve = "#DFB1EB", -- Mauve mauve = "#DEB3EE", -- Mauve -
pink = "#F5C2E7", -- Pink pink = "#F5C2E7", -- Pink
red = "#F08FA9", -- Red red = "#F28FAD", -- Red
maroon = "#E8A2AF", -- Maroon maroon = "#E8A2AF", -- Maroon
peach = "#F9C296", -- Peach peach = "#F8BD96", -- Peach
yellow = "#F0DEAA", -- Yellow yellow = "#FAE3B0", -- Yellow -
green = "#ACE5AB", -- Green green = "#ACE6AD", -- Green -
blue = "#98BBF5", -- Blue blue = "#96CDFB", -- Blue -
sky = "#89DCEB", -- Sky sky = "#89DCEB", -- Sky -
teal = "#B5E8E0", -- Teal teal = "#B5E8E0", -- Teal
lavender = "#C9CBFF", -- Lavender lavender = "#C9CBFF", -- Lavender
white = "#DEDDF0", -- White white = "#D9E0EE", -- White -
gray2 = "#C3BAC6", -- Gray2 gray2 = "#C3BAC6", -- Gray2
gray1 = "#988BA2", -- Gray1 gray1 = "#988BA2", -- Gray1
gray0 = "#6E6C7E", -- Gray0 gray0 = "#6E6C7E", -- Gray0
black4 = "#575268", -- Black4 black4 = "#575268", -- Black4
black3 = "#332E41", -- Black3 black3 = "#302D41", -- Black3 -
black2 = "#1E1D2D", -- Black2 black2 = "#1E1D2F", -- Black2 -
black1 = "#1B1923", -- Black1 black1 = "#1B1923", -- Black1
black0 = "#15121C", -- Black0 black0 = "#131020", -- Black0 -
} }
return color_palette return color_palette

@ -106,3 +106,111 @@ function M.get(cp)
end end
return M return M
local M = {}
function M.get(cp)
local delimeters = cp.gray1
local operators = cp.sky
local cl = cp.mauve -- conditionals, loops
local keywords = cp.red
local math_logic = cp.peach
return {
-- 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.
TSField = { fg = cp.rosewater }, -- For fields.
TSProperty = { fg = cp.yellow, style = "italic" }, -- Same as TSField.
TSInclude = { fg = cp.teal, style = "italic" }, -- For includes: #include in C, use or extern crate in Rust, or require in Lua.
TSOperator = { fg = operators, style = "bold" }, -- For any operator: +, but also -> and * in cp.
TSKeywordOperator = { fg = operators, style = "bold" }, -- For new keyword operator
TSPunctSpecial = { fg = cp.maroon, style = "bold" }, -- For special punctutation that does not fall in the catagories before.
TSFloat = { fg = math_logic, style = "bold,italic" }, -- For floats.
TSNumber = { fg = math_logic, style = "bold,italic" }, -- For all numbers
TSBoolean = { fg = math_logic, style = "bold,italic" }, -- For booleans.
TSConstructor = { fg = cp.lavender }, -- For constructor calls and definitions: = { } in Lua, and Java constructors.
TSConstant = { fg = cp.peach }, -- For constants
TSConditional = { fg = cl, style = "bold" }, -- For keywords related to conditionnals.
TSRepeat = { fg = cl, style = "bold" }, -- For keywords related to loops.
TSException = { fg = cp.peach, style = cnf.styles.keywords }, -- For exception related keywords.
-- builtin
TSConstBuiltin = { fg = cp.lavender, style = cnf.styles.keywords }, -- For constant that are built in the language: nil in Lua.
TSFuncBuiltin = { fg = cp.peach, style = "italic" }, -- For builtin functions: table.insert in Lua.
TSTypeBuiltin = { fg = cp.yellow, style = "italic" }, -- For builtin types.
TSVariableBuiltin = { fg = cp.teal, style = "italic" }, -- Variable names that are defined by the languages, like this or self.
TSFunction = { fg = cp.blue, style = cnf.styles.functions }, -- For function (calls and definitions).
TSFuncMacro = { fg = cp.red }, -- For macro defined functions (calls and definitions): each macro_rules in Ruscp.
TSParameter = { fg = cp.rosewater, style = "italic" }, -- For parameters of a function.
TSKeywordFunction = { fg = cp.maroon, style = cnf.styles.keywords }, -- For keywords used to define a fuction.
TSKeyword = { fg = keywords, style = cnf.styles.keywords }, -- For keywords that don't fall in previous categories.
TSKeywordReturn = { fg = cp.pink },
-- TSAnnotation = { }; -- For C++/Dart attributes, annotations that can be attached to the code to denote some kind of meta information.
-- TSAttribute = { }; -- (unstable) TODO: docs
-- TSCharacter = { }; -- For characters.
-- TSgray0 = { }; -- For gray0 blocks.
TSNote = { fg = cp.black2, bg = cp.blue },
TSWarning = { fg = cp.black2, bg = cp.yellow },
TSDanger = { fg = cp.black2, bg = cp.red },
-- TSConstMacro = { }; -- For constants that are defined by macros: NULL in cp.
-- TSError = { fg = cp.red }, -- For syntax/parser errors.
-- rustTSField = { fg = cp.black4 }, -- For fields.
TSLabel = { fg = cp.blue }, -- For labels: label: in C and :label: in Lua.
TSMethod = { fg = cp.blue, style = "italic" }, -- For method calls and definitions.
TSNamespace = { fg = cp.rosewater, style = "italic" }, -- For identifiers referring to modules and namespaces.
-- TSNone = { }; -- TODO: docs
-- TSParameterReference= { }; -- For references to parameters of a function.
tomlTSProperty = { fg = cp.blue }, -- Differentiates between string and properties
TSPunctDelimiter = { fg = delimeters }, -- For delimiters ie: .
TSPunctBracket = { fg = delimeters }, -- For brackets and parenthesis.
TSString = { fg = cp.green }, -- For strings.
TSStringRegex = { fg = cp.peach, style = cnf.styles.strings }, -- For regexes.
-- TSSymbol = { }; -- For identifiers referring to symbols or atoms.
TSType = { fg = cp.yellow }, -- For types.
TSVariable = { fg = cp.white, style = cnf.styles.variables }, -- Any variable name that does not have another highlighcp.
TSTagAttribute = { fg = cp.mauve, style = "italic" }, -- Tags like html tag names.
TSTag = { fg = cp.peach }, -- Tags like html tag names.
TSTagDelimiter = { fg = cp.maroon }, -- Tag delimiter like < > /
TSText = { fg = cp.white }, -- For strings considerated 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 texcp.
-- TSTitle = { }; -- Text that is part of a title.
-- TSLiteral = { }; -- Literal texcp.
-- TSURI = { }; -- Any URI like a link or email.
--
-- Markdown tresitter parser support
TSURI = { fg = cp.flamingo, style = "italic,underline" }, -- urls, links and emails
TSLiteral = { fg = cp.green, style = "italic" }, -- used for inline code in markdown and for doc in python (""")
TSTextReference = { fg = cp.teal, style = "bold" }, -- references
TSTitle = { fg = cp.blue, style = "bold" }, -- titles like: # Example
TSEmphasis = { fg = cp.maroon, style = "italic" }, -- bold
TSStrong = { fg = cp.maroon, style = "bold" }, -- italic
TSStringEscape = { fg = cp.pink, style = cnf.styles.strings }, -- For escape characters within a string.
-- bash
bashTSFuncBuiltin = { fg = cp.red, style = "italic" },
bashTSParameter = { fg = cp.yellow, style = "italic" },
-- lua
luaTSField = { fg = cp.lavender },
luaTSConstructor = { fg = cp.flamingo }, -- For constructor calls and definitions: = { } in Lua, and Java constructors.
-- java
javaTSConstant = { fg = cp.teal },
-- typescript
typescriptTSProperty = { fg = cp.mauve, style = "italic" }, -- Same as TSField.
-- css
cssTSType = { fg = cp.lavender },
cssTSProperty = { fg = cp.yellow, style = "italic" }, -- Same as TSField.
}
end
return M

Loading…
Cancel
Save