add catppuccin theme | treesitter highlights

This commit is contained in:
siduck 2022-01-19 17:13:33 +05:30
parent 41ff17a730
commit 8fc78aca39
3 changed files with 91 additions and 0 deletions

View file

@ -169,6 +169,44 @@ local function apply_base16_theme(theme)
highlight("SpellCap", nil, nil, "undercurl", theme.base0D)
highlight("SpellRare", nil, nil, "undercurl", theme.base0E)
-- treesitter
highlight("TSAnnotation", theme.base0F, nil, "none", nil)
highlight("TSAttribute", theme.base0A, nil, "none", nil)
highlight("TSCharacter", theme.base08, nil, "none", nil)
highlight("TSConstBuiltin", theme.base09, nil, "none", nil)
highlight("TSConstMacro", theme.base08, nil, "none", nil)
highlight("TSError", theme.base08, nil, "none", nil)
highlight("TSException", theme.base08, nil, "none", nil)
highlight("TSFloat", theme.base09, nil, "none", nil)
highlight("TSFuncBuiltin", theme.base0D, nil, "none", nil)
highlight("TSFuncMacro", theme.base08, nil, "none", nil)
highlight("TSKeywordFunction", theme.base0E, nil, "none", nil)
highlight("TSKeywordOperator", theme.base0E, nil, "none", nil)
highlight("TSMethod", theme.base0D, nil, "none", nil)
highlight("TSNamespace", theme.base08, nil, "none", nil)
highlight("TSNone", theme.base05, nil, "none", nil)
highlight("TSParameter", theme.base05, nil, "none", nil)
highlight("TSParameterReference", theme.base05, nil, "none", nil)
highlight("TSPunctDelimiter", theme.base0F, nil, "none", nil)
highlight("TSPunctBracket", theme.base05, nil, "none", nil)
highlight("TSPunctSpecial", theme.base05, nil, "none", nil)
highlight("TSStringRegex", theme.base0C, nil, "none", nil)
highlight("TSStringEscape", theme.base0C, nil, "none", nil)
highlight("TSSymbol", theme.base0B, nil, "none", nil)
highlight("TSTagDelimiter", theme.base0F, nil, "none", nil)
highlight("TSText", theme.base05, nil, "none", nil)
highlight("TSStrong", nil, nil, "bold", nil)
highlight("TSEmphasis", theme.base09, nil, "none", nil)
highlight("TSStrike", theme.base00, nil, "strikethrough", nil)
highlight("TSLiteral", theme.base09, nil, "none", nil)
highlight("TSURI", theme.base09, nil, "underline", nil)
highlight("TSTypeBuiltin", theme.base0A, nil, "none", nil)
highlight("TSVariable", theme.base08, nil, "none", nil)
highlight("TSVariableBuiltin", theme.base08, nil, "none", nil)
highlight("TSDefinition", nil, nil, "underline", theme.base04)
highlight("TSDefinitionUsage", nil, nil, "underline", theme.base04)
highlight("TSCurrentScope", nil, nil, "bold", nil)
-- TODO
-- nvim.command 'syntax on'
end