experiment 7.1 - different syntax

experiments
Pocco81 3 years ago
parent 7b4895a13f
commit 9488f322b4

@ -1,16 +1,16 @@
local color_palette = { local color_palette = {
rosewater = "#F5E0DC", -- Rosewater rosewater = "#F5E0DC", -- Rosewater
flamingo = "#F2CDCD", -- Flamingo flamingo = "#F2CDCD", -- Flamingo
magenta = "#D1A1ED", -- Magenta magenta = "#DFB1EB", -- Magenta
pink = "#E5B4E2", -- Pink pink = "#F5C2E7", -- Pink
red = "#F08FA9", -- Red red = "#F08FA9", -- Red
maroon = "#E49CB3", -- Maroon maroon = "#E49CB3", -- Maroon
peach = "#F8C093", -- Peach peach = "#F8C093", -- Peach
yellow = "#F0DEAA", -- Yellow yellow = "#F0DEAA", -- Yellow
green = "#ACE5AB", -- Green green = "#ACE5AB", -- Green
teal = "#B7E5E6", -- Teal teal = "#B5E8E0", -- Teal
sky = "#86DEEA", -- Sky sky = "#86DEEA", -- Sky
blue = "#87BCFA", -- Blue blue = "#95BBF5", -- Blue
lavender = "#C9CBFF", -- Lavender lavender = "#C9CBFF", -- Lavender
white = "#DEDDF0", -- White white = "#DEDDF0", -- White
gray2 = "#C3BAC6", -- Gray2 gray2 = "#C3BAC6", -- Gray2

@ -1,8 +1,11 @@
local M = {} local M = {}
function M.get(cp) function M.get(cp)
local keywords = cp.red local delimeters = cp.gray1
local operators = cp.sky local operators = cp.sky
local cl = cp.magenta -- conditionals, loops
local keywords = cp.red
local math_logic = cp.peach local math_logic = cp.peach
return { return {
-- These groups are for the neovim tree-sitter highlights. -- These groups are for the neovim tree-sitter highlights.
@ -23,20 +26,20 @@ function M.get(cp)
TSConstructor = { fg = cp.white }, -- For constructor calls and definitions: = { } in Lua, and Java constructors. TSConstructor = { fg = cp.white }, -- For constructor calls and definitions: = { } in Lua, and Java constructors.
TSConstant = { fg = cp.peach }, -- For constants TSConstant = { fg = cp.peach }, -- For constants
TSConditional = { fg = cp.magenta, style = "bold" }, -- For keywords related to conditionnals. TSConditional = { fg = cl, style = "bold" }, -- For keywords related to conditionnals.
TSRepeat = { fg = cp.magenta, style = "bold" }, -- For keywords related to loops. TSRepeat = { fg = cl, style = "bold" }, -- For keywords related to loops.
TSException = { fg = cp.peach, style = cnf.styles.keywords }, -- For exception related keywords. TSException = { fg = cp.peach, style = cnf.styles.keywords }, -- For exception related keywords.
-- builtin -- builtin
TSConstBuiltin = { fg = cp.white, style = cnf.styles.keywords }, -- For constant that are built in the language: nil in Lua. TSConstBuiltin = { fg = cp.teal, 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. TSFuncBuiltin = { fg = cp.peach, style = "italic" }, -- For builtin functions: table.insert in Lua.
TSTypeBuiltin = { fg = cp.maroon, style = "italic" }, -- For builtin types. TSTypeBuiltin = { fg = cp.maroon, style = "italic" }, -- For builtin types.
TSVariableBuiltin = { fg = cp.maroon, style = "italic" }, -- Variable names that are defined by the languages, like this or self. 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). 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. 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. TSParameter = { fg = cp.rosewater, style = "italic" }, -- For parameters of a function.
TSKeywordFunction = { fg = cp.red, style = cnf.styles.keywords }, -- For keywords used to define a fuction. TSKeywordFunction = { fg = keywords, 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. TSKeyword = { fg = keywords, style = cnf.styles.keywords }, -- For keywords that don't fall in previous categories.
TSKeywordReturn = { fg = cp.pink }, TSKeywordReturn = { fg = cp.pink },
-- TSAnnotation = { }; -- For C++/Dart attributes, annotations that can be attached to the code to denote some kind of meta information. -- TSAnnotation = { }; -- For C++/Dart attributes, annotations that can be attached to the code to denote some kind of meta information.
@ -55,8 +58,8 @@ function M.get(cp)
-- TSNone = { }; -- TODO: docs -- TSNone = { }; -- TODO: docs
-- TSParameterReference= { }; -- For references to parameters of a function. -- TSParameterReference= { }; -- For references to parameters of a function.
tomlTSProperty = { fg = cp.blue }, -- Differentiates between string and properties tomlTSProperty = { fg = cp.blue }, -- Differentiates between string and properties
TSPunctDelimiter = { fg = cp.gray0 }, -- For delimiters ie: . TSPunctDelimiter = { fg = delimeters }, -- For delimiters ie: .
TSPunctBracket = { fg = cp.gray0 }, -- For brackets and parenthesis. TSPunctBracket = { fg = delimeters }, -- For brackets and parenthesis.
TSString = { fg = cp.green }, -- For strings. TSString = { fg = cp.green }, -- For strings.
TSStringRegex = { fg = cp.peach, style = cnf.styles.strings }, -- For regexes. TSStringRegex = { fg = cp.peach, style = cnf.styles.strings }, -- For regexes.
-- TSSymbol = { }; -- For identifiers referring to symbols or atoms. -- TSSymbol = { }; -- For identifiers referring to symbols or atoms.

Loading…
Cancel
Save