experiment 1

experiments
Pocco81 3 years ago
parent 3c70677559
commit 88987a3c07

@ -1,14 +1,21 @@
local color_palette = { local color_palette = {
-- morning palette -- morning palette
catppuccin0 = "#B1E3AD", -- Green catppuccin0 = "#B0DFA4", -- Green
catppuccin2 = "#F2CECF", -- Flamingo catppuccin2 = "#F0C7C7", -- Flamingo
catppuccin3 = "#C6AAE8", -- Magenta catppuccin3 = "#C7B3EE", -- Magenta
catppuccin4 = "#E5B4E2", -- Pink catppuccin4 = "#E2B2E1", -- Pink
catppuccin5 = "#E38C8F", -- Red catppuccin5 = "#E38C8F", -- Red
catppuccin6 = "#F9C096", -- Peach
catppuccin7 = "#BEE4ED", -- Teal catppuccin7 = "#BEE4ED", -- Teal
catppuccin8 = "#EBDDAA", -- Yellow catppuccin8 = "#F1D49B", -- Yellow
catppuccin9 = "#A4B9EF", -- Blue catppuccin9 = "#A0B6ED", -- Blue
catppuccin18 = "#95C6C1",
catppuccin6 = "#F0B58F", -- Peach
-- haven't found a good match for catppuccin19. It's mostly used on operators and symbols
catppuccin19 = "#FF7171",
-- catppuccin19 = "#C9CBFF",
-- catppuccin19 = "#ECAA9F",
-- night palette -- night palette
catppuccin13 = "#15121C", -- Black0 catppuccin13 = "#15121C", -- Black0
@ -19,7 +26,7 @@ local color_palette = {
catppuccin11 = "#6E6C7E", -- Gray0 catppuccin11 = "#6E6C7E", -- Gray0
catppuccin17 = "#988BA2", -- Gray1 catppuccin17 = "#988BA2", -- Gray1
catppuccin15 = "#C3BAC6", -- Gray2 catppuccin15 = "#C3BAC6", -- Gray2
catppuccin10 = "#DADAE8", -- White catppuccin10 = "#DCDCE8", -- White
} }
return color_palette return color_palette

@ -2,7 +2,8 @@ local M = {}
function M.get(cp) function M.get(cp)
local keywords = cp.catppuccin4 local keywords = cp.catppuccin4
local operators = cp.catppuccin7 local operators = cp.catppuccin19
local math_logic = cp.catppuccin18
return { return {
-- These groups are for the neovim tree-sitter highlights. -- These groups are for the neovim tree-sitter highlights.
-- As of writing, tree-sitter support is a WIP, group names may change. -- As of writing, tree-sitter support is a WIP, group names may change.
@ -16,20 +17,21 @@ function M.get(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.catppuccin5 }, -- For special punctutation that does not fall in the catagories before.
TSFloat = { fg = cp.catppuccin6, style = "italic" }, -- For floats. TSFloat = { fg = math_logic, style = "italic" }, -- For floats.
TSNumber = { fg = cp.catppuccin6, style = "italic" }, -- For all numbers TSNumber = { fg = cp.catppuccin5, style = "italic" }, -- For all numbers
TSBoolean = { fg = cp.catppuccin6, style = "italic" }, -- For booleans. TSBoolean = { fg = math_logic, style = "italic" }, -- For booleans.
TSConstructor = { fg = cp.catppuccin9 }, -- For constructor calls and definitions: = { } in Lua, and Java constructors. TSConstructor = { fg = cp.catppuccin9 }, -- For constructor calls and definitions: = { } in Lua, and Java constructors.
TSConstant = { fg = cp.catppuccin2 }, -- For constants TSConstant = { fg = cp.catppuccin2, style = "NONE" }, -- For constants
TSConditional = { fg = keywords, style = cnf.styles.keywords }, -- For keywords related to conditionnals. TSConditional = { fg = keywords, style = "bold" }, -- For keywords related to conditionnals.
TSRepeat = { fg = keywords, style = cnf.styles.keywords }, -- For keywords related to loops. TSRepeat = { fg = keywords }, -- For keywords related to loops.
TSException = { fg = cp.catppuccin6, style = cnf.styles.keywords }, -- For exception related keywords. TSException = { fg = cp.catppuccin6, style = "italic" }, -- For exception related keywords.
TSKeywordReturn = { fg = cp.catppuccin5 },
-- builtin -- builtin
TSConstBuiltin = { fg = cp.catppuccin6, style = cnf.styles.keywords }, -- For constant that are built in the language: nil in Lua. TSConstBuiltin = { fg = cp.catppuccin18, 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.catppuccin18, 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).
@ -60,19 +62,20 @@ function M.get(cp)
-- TSSymbol = { }; -- For identifiers referring to symbols or atoms. -- TSSymbol = { }; -- For identifiers referring to symbols or atoms.
TSType = { fg = cp.catppuccin8 }, -- For types. TSType = { fg = cp.catppuccin8 }, -- For types.
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.
TSTag = { fg = cp.catppuccin6 }, -- Tags like html tag names.
TSTagDelimiter = { fg = cp.catppuccin5 }, -- Tag delimiter like < > /
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.
-- TSStrike = { }; -- For strikethrough texcp. -- TSStrike = { }; -- For strikethrough texcp.
-- TSTitle = { }; -- Text that is part of a title. -- TSTitle = { }; -- Text that is part of a title.
-- TSLiteral = { }; -- Literal texcp. -- TSLiteral = { }; -- Literal texcp.
-- TSURI = { }; -- Any URI like a link or email.
-- -- html
TSTagAttribute = { fg = cp.catppuccin3, style = "italic" }, -- Tags like html tag names.
TSTag = { fg = cp.catppuccin6 }, -- Tags like html tag names.
TSTagDelimiter = { fg = cp.catppuccin18 }, -- Tag delimiter like < > /
TSText = { fg = cp.catppuccin10 }, -- For strings considerated text in a markup language.
-- 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

Loading…
Cancel
Save