From 7a0d624640a12206f97f4b775ee609310695cb5f Mon Sep 17 00:00:00 2001 From: siduck Date: Sun, 20 Nov 2022 21:35:57 +0530 Subject: [PATCH] put syntax highlights in a different file --- lua/base46/integrations/defaults.lua | 114 -------------------------- lua/base46/integrations/syntax.lua | 116 +++++++++++++++++++++++++++ 2 files changed, 116 insertions(+), 114 deletions(-) create mode 100644 lua/base46/integrations/syntax.lua diff --git a/lua/base46/integrations/defaults.lua b/lua/base46/integrations/defaults.lua index e334346..93019f4 100644 --- a/lua/base46/integrations/defaults.lua +++ b/lua/base46/integrations/defaults.lua @@ -211,120 +211,6 @@ return { fg = colors.black, }, - ------------------------------------- Syntax ---------------------------------------------- - - Boolean = { - fg = theme.base09, - }, - - Character = { - fg = theme.base08, - }, - - Conditional = { - fg = theme.base0E, - }, - - Constant = { - fg = theme.base08, - }, - - Define = { - fg = theme.base0E, - sp = "none", - }, - - Delimiter = { - fg = theme.base0F, - }, - - Float = { - fg = theme.base09, - }, - - Variable = { - fg = theme.base05, - }, - - Function = { - fg = theme.base0D, - }, - - Identifier = { - fg = theme.base08, - sp = "none", - }, - - Include = { - fg = theme.base0D, - }, - - Keyword = { - fg = theme.base0E, - }, - - Label = { - fg = theme.base0A, - }, - - Number = { - fg = theme.base09, - }, - - Operator = { - fg = theme.base05, - sp = "none", - }, - - PreProc = { - fg = theme.base0A, - }, - - Repeat = { - fg = theme.base0A, - }, - - Special = { - fg = theme.base0C, - }, - - SpecialChar = { - fg = theme.base0F, - }, - - Statement = { - fg = theme.base08, - }, - - StorageClass = { - fg = theme.base0A, - }, - - String = { - fg = theme.base0B, - }, - - Structure = { - fg = theme.base0E, - }, - - Tag = { - fg = theme.base0A, - }, - - Todo = { - fg = theme.base0A, - bg = theme.base01, - }, - - Type = { - fg = theme.base0A, - sp = "none", - }, - - Typedef = { - fg = theme.base0A, - }, ------------------------------------- Statusline ---------------------------------------------- diff --git a/lua/base46/integrations/syntax.lua b/lua/base46/integrations/syntax.lua new file mode 100644 index 0000000..9fb2a8d --- /dev/null +++ b/lua/base46/integrations/syntax.lua @@ -0,0 +1,116 @@ +local theme = require("base46").get_theme_tb "base_16" + +return { + Boolean = { + fg = theme.base09, + }, + + Character = { + fg = theme.base08, + }, + + Conditional = { + fg = theme.base0E, + }, + + Constant = { + fg = theme.base08, + }, + + Define = { + fg = theme.base0E, + sp = "none", + }, + + Delimiter = { + fg = theme.base0F, + }, + + Float = { + fg = theme.base09, + }, + + Variable = { + fg = theme.base05, + }, + + Function = { + fg = theme.base0D, + }, + + Identifier = { + fg = theme.base08, + sp = "none", + }, + + Include = { + fg = theme.base0D, + }, + + Keyword = { + fg = theme.base0E, + }, + + Label = { + fg = theme.base0A, + }, + + Number = { + fg = theme.base09, + }, + + Operator = { + fg = theme.base05, + sp = "none", + }, + + PreProc = { + fg = theme.base0A, + }, + + Repeat = { + fg = theme.base0A, + }, + + Special = { + fg = theme.base0C, + }, + + SpecialChar = { + fg = theme.base0F, + }, + + Statement = { + fg = theme.base08, + }, + + StorageClass = { + fg = theme.base0A, + }, + + String = { + fg = theme.base0B, + }, + + Structure = { + fg = theme.base0E, + }, + + Tag = { + fg = theme.base0A, + }, + + Todo = { + fg = theme.base0A, + bg = theme.base01, + }, + + Type = { + fg = theme.base0A, + sp = "none", + }, + + Typedef = { + fg = theme.base0A, + }, +}