final experiment (probably) because syntactic elements are working pretty well together

experiments
Pocco81 3 years ago
parent 66150dd23d
commit 4a4bfe2e57

@ -1,29 +1,26 @@
local color_palette = { local color_palette = {
-- morning palette
catppuccin21 = "#F5E0DC", catppuccin21 = "#F5E0DC",
catppuccin2 = "#F1CBCB", -- Flamingo catppuccin2 = "#F1CBCB", -- Flamingo
catppuccin3 = "#C5A8E7", -- Magenta catppuccin3 = "#C6AAE8", -- Magenta
catppuccin4 = "#E2B2E2", -- Pink catppuccin4 = "#E2B2E2", -- Pink
catppuccin5 = "#E38C8F", -- Red catppuccin5 = "#E38C8F", -- Red
catppuccin19 = "#E798B1", -- Maroon catppuccin19 = "#E59AB2", -- Maroon
catppuccin6 = "#F1B790", -- Peach catppuccin6 = "#F1B790", -- Peach
catppuccin8 = "#ECDDA9", -- Yellow catppuccin8 = "#ECDDAA", -- Yellow
catppuccin0 = "#B1E1A6", -- Green catppuccin0 = "#B1E1A6", -- Green
catppuccin7 = "#A4E5D1", -- Teal catppuccin7 = "#A2E5D1", -- Teal
catppuccin20 = "#9AC3D5", catppuccin20 = "#9BC6D1",
catppuccin9 = "#A3B9EF", -- Blue catppuccin9 = "#A3B9EF", -- Blue
catppuccin18 = "#CACCFF", -- Sky catppuccin18 = "#CACCFF", -- Sky
catppuccin10 = "#DFDEF1", -- White
-- night palette
catppuccin13 = "#15121C", -- Black0
catppuccin14 = "#1B1923", -- Black1
catppuccin1 = "#1E1E28", -- Black2
catppuccin16 = "#332E41", -- Black3
catppuccin12 = "#575268", -- Black4
catppuccin11 = "#6E6C7E", -- Gray0
catppuccin17 = "#988BA2", -- Gray1
catppuccin15 = "#C3BAC6", -- Gray2 catppuccin15 = "#C3BAC6", -- Gray2
catppuccin10 = "#DCDCE8", -- White catppuccin17 = "#988BA2", -- Gray1
catppuccin11 = "#6E6C7E", -- Gray0
catppuccin12 = "#575268", -- Black4
catppuccin16 = "#332E41", -- Black3
catppuccin1 = "#1E1E28", -- Black2
catppuccin14 = "#1B1923", -- Black1
catppuccin13 = "#15121C", -- Black0
} }
return color_palette return color_palette

@ -15,7 +15,7 @@ function M.get(cp)
TSInclude = { fg = cp.catppuccin19, style = "italic" }, -- For includes: #include in C, use or extern crate in Rust, or require in Lua. TSInclude = { fg = cp.catppuccin19, 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. TSOperator = { fg = operators, style = "bold" }, -- For any operator: +, but also -> and * in cp.
TSKeywordOperator = { fg = operators, style = "bold" }, -- For new keyword operator TSKeywordOperator = { fg = operators, style = "bold" }, -- For new keyword operator
TSPunctSpecial = { fg = cp.catppuccin5 }, -- For special punctutation that does not fall in the catagories before. TSPunctSpecial = { fg = cp.catppuccin19, style = "bold" }, -- For special punctutation that does not fall in the catagories before.
TSFloat = { fg = math_logic, style = "bold,italic" }, -- For floats. TSFloat = { fg = math_logic, style = "bold,italic" }, -- For floats.
TSNumber = { fg = math_logic, style = "bold,italic" }, -- For all numbers TSNumber = { fg = math_logic, style = "bold,italic" }, -- For all numbers
@ -30,7 +30,7 @@ function M.get(cp)
-- builtin -- builtin
TSConstBuiltin = { fg = cp.catppuccin20, style = cnf.styles.keywords }, -- For constant that are built in the language: nil in Lua. TSConstBuiltin = { fg = cp.catppuccin20, style = cnf.styles.keywords }, -- For constant that are built in the language: nil in Lua.
TSFuncBuiltin = { fg = cp.catppuccin6, style = "italic" }, -- For builtin functions: table.insert in Lua. TSFuncBuiltin = { fg = cp.catppuccin6, style = "italic" }, -- For builtin functions: table.insert in Lua.
TSTypeBuiltin = { fg = cp.catppuccin5, style = "italic" }, -- For builtin types. TSTypeBuiltin = { fg = cp.catppuccin20, style = "italic" }, -- For builtin types.
TSVariableBuiltin = { fg = cp.catppuccin5, style = "italic" }, -- Variable names that are defined by the languages, like this or self. TSVariableBuiltin = { fg = cp.catppuccin5, style = "italic" }, -- Variable names that are defined by the languages, like this or self.
TSFunction = { fg = cp.catppuccin9, style = cnf.styles.functions }, -- For function (calls and definitions). TSFunction = { fg = cp.catppuccin9, style = cnf.styles.functions }, -- For function (calls and definitions).
@ -64,7 +64,7 @@ function M.get(cp)
TSVariable = { fg = cp.catppuccin10, style = cnf.styles.variables }, -- Any variable name that does not have another highlighcp. TSVariable = { fg = cp.catppuccin10, style = cnf.styles.variables }, -- Any variable name that does not have another highlighcp.
TSTagAttribute = { fg = cp.catppuccin3, style = "italic" }, -- Tags like html tag names. TSTagAttribute = { fg = cp.catppuccin3, style = "italic" }, -- Tags like html tag names.
TSTag = { fg = cp.catppuccin6 }, -- Tags like html tag names. TSTag = { fg = cp.catppuccin6 }, -- Tags like html tag names.
TSTagDelimiter = { fg = cp.catppuccin5 }, -- Tag delimiter like < > / TSTagDelimiter = { fg = cp.catppuccin18 }, -- Tag delimiter like < > /
TSText = { fg = cp.catppuccin10 }, -- For strings considerated text in a markup language. TSText = { fg = cp.catppuccin10 }, -- For strings considerated text in a markup language.
-- TSEmphasis = { }; -- For text to be represented with emphasis. -- TSEmphasis = { }; -- For text to be represented with emphasis.
-- TSUnderline = { }; -- For text to be represented with an underline. -- TSUnderline = { }; -- For text to be represented with an underline.
@ -74,12 +74,12 @@ function M.get(cp)
-- TSURI = { }; -- Any URI like a link or email. -- TSURI = { }; -- Any URI like a link or email.
-- --
-- Markdown tresitter parser support -- Markdown tresitter parser support
TSURI = { fg = cp.catppuccin2, style = "italic" }, -- urls TSURI = { fg = cp.catppuccin2, style = "italic,underline" }, -- urls, links and emails
TSLiteral = { fg = cp.catppuccin0, style = "italic" }, -- used for inline code in markdown and for doc in python (""") TSLiteral = { fg = cp.catppuccin0, style = "italic" }, -- used for inline code in markdown and for doc in python (""")
TSTextReference = { fg = cp.catppuccin7, style = "bold" }, -- references TSTextReference = { fg = cp.catppuccin7, style = "bold" }, -- references
TSTitle = { fg = cp.catppuccin9, style = "bold" }, -- titles like: # Example TSTitle = { fg = cp.catppuccin9, style = "bold" }, -- titles like: # Example
TSEmphasis = { fg = cp.catppuccin5, style = "bold" }, -- bold TSEmphasis = { fg = cp.catppuccin19, style = "italic" }, -- bold
TSStrong = { fg = cp.catppuccin4, style = "italic,bold" }, -- italic TSStrong = { fg = cp.catppuccin19, style = "bold" }, -- italic
TSStringEscape = { fg = cp.catppuccin4, style = cnf.styles.strings }, -- For escape characters within a string. TSStringEscape = { fg = cp.catppuccin4, style = cnf.styles.strings }, -- For escape characters within a string.
-- bash -- bash
@ -87,7 +87,10 @@ function M.get(cp)
bashTSParameter = { fg = cp.catppuccin8, style = "italic" }, bashTSParameter = { fg = cp.catppuccin8, style = "italic" },
-- lua -- lua
luaTSField = { fg = cp.catppuccin8 }, luaTSField = { fg = cp.catppuccin7 },
-- java
javaTSConstant = { fg = cp.catppuccin7 },
} }
end end

Loading…
Cancel
Save