Merge branch 'dev' into dev

dev
Pocco81 3 years ago committed by GitHub
commit 068c8334d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -115,6 +115,7 @@ integrations = {
nvimtree = { nvimtree = {
enabled = true, enabled = true,
show_root = false, show_root = false,
transparent_panel = false,
}, },
which_key = false, which_key = false,
indent_blankline = { indent_blankline = {
@ -243,6 +244,7 @@ integration = {
nvimtree = { nvimtree = {
enabled = true, enabled = true,
show_root = true, -- makes the root folder not transparent show_root = true, -- makes the root folder not transparent
transparent_panel = false, -- make the panel transparent
} }
} }
``` ```

@ -37,6 +37,7 @@ config.options = {
nvimtree = { nvimtree = {
enabled = true, enabled = true,
show_root = false, show_root = false,
transparent_panel = false,
}, },
which_key = false, which_key = false,
indent_blankline = { indent_blankline = {
@ -53,8 +54,8 @@ config.options = {
lightspeed = false, lightspeed = false,
ts_rainbow = false, ts_rainbow = false,
hop = false, hop = false,
notify = true, notify = true,
telekasten = true, telekasten = true,
}, },
} }

@ -1,26 +1,26 @@
local color_palette = { local color_palette = {
rosewater = "#F5E0DC", -- Rosewater rosewater = "#F5E0DC", -- Rosewater
flamingo = "#F2CDCD", -- Flamingo flamingo = "#F2CDCD", -- Flamingo
mauve = "#DFB1EB", -- Mauve mauve = "#DDB6F2", -- Mauve
pink = "#F5C2E7", -- Pink pink = "#F5C2E7", -- Pink
red = "#F08FA9", -- Red red = "#F28FAD", -- Red
maroon = "#E8A2AF", -- Maroon maroon = "#E8A2AF", -- Maroon
peach = "#F9C296", -- Peach peach = "#F8BD96", -- Peach
yellow = "#F0DEAA", -- Yellow yellow = "#FAE3B0", -- Yellow
green = "#ACE5AB", -- Green green = "#ABE9B3", -- Green
blue = "#98BBF5", -- Blue blue = "#96CDFB", -- Blue
sky = "#89DCEB", -- Sky sky = "#89DCEB", -- Sky
teal = "#B5E8E0", -- Teal teal = "#B5E8E0", -- Teal
lavender = "#C9CBFF", -- Lavender lavender = "#C9CBFF", -- Lavender
white = "#DEDDF0", -- White white = "#D9E0EE", -- White
gray2 = "#C3BAC6", -- Gray2 gray2 = "#C3BAC6", -- Gray2
gray1 = "#988BA2", -- Gray1 gray1 = "#988BA2", -- Gray1
gray0 = "#6E6C7E", -- Gray0 gray0 = "#6E6C7E", -- Gray0
black4 = "#575268", -- Black4 black4 = "#575268", -- Black4
black3 = "#332E41", -- Black3 black3 = "#302D41", -- Black3
black2 = "#1E1D2D", -- Black2 black2 = "#1E1E2E", -- Black2
black1 = "#1B1923", -- Black1 black1 = "#1A1826", -- Black1
black0 = "#15121C", -- Black0 black0 = "#161320", -- Black0
} }
return color_palette return color_palette

@ -5,10 +5,10 @@ function M.get(cp)
NeogitBranch = { fg = cp.pink }, NeogitBranch = { fg = cp.pink },
NeogitRemote = { fg = cp.pink }, NeogitRemote = { fg = cp.pink },
NeogitHunkHeader = { bg = cp.blue, fg = cp.white }, NeogitHunkHeader = { bg = cp.blue, fg = cp.white },
NeogitHunkHeaderHighlight = { bg = cp.black4, fg = cp.blue }, NeogitHunkHeaderHighlight = { bg = cp.black2, fg = cp.blue },
NeogitDiffContextHighlight = { bg = cp.gray2, fg = cp.green }, NeogitDiffContextHighlight = { bg = cp.black1, fg = cp.gray2 },
NeogitDiffDeleteHighlight = { fg = cp.red, bg = cp.black2 }, NeogitDiffDeleteHighlight = { bg = cp.black1, fg = cp.red },
NeogitDiffAddHighlight = { fg = cp.green, bg = cp.black2 }, NeogitDiffAddHighlight = { bg = cp.black1, fg = cp.green },
} }
end end

@ -10,6 +10,7 @@ function M.get(cp)
root_dir_color = cp.blue root_dir_color = cp.blue
end end
return { return {
NvimTreeFolderName = { fg = cp.blue }, NvimTreeFolderName = { fg = cp.blue },
NvimTreeFolderIcon = { fg = cp.blue }, NvimTreeFolderIcon = { fg = cp.blue },

@ -24,7 +24,7 @@ function M.get(cp)
TSNumber = { fg = math_logic, style = "bold,italic" }, -- For all numbers TSNumber = { fg = math_logic, style = "bold,italic" }, -- For all numbers
TSBoolean = { fg = math_logic, style = "bold,italic" }, -- For booleans. TSBoolean = { fg = math_logic, style = "bold,italic" }, -- For booleans.
TSConstructor = { fg = cp.white }, -- For constructor calls and definitions: = { } in Lua, and Java constructors. TSConstructor = { fg = cp.lavender }, -- For constructor calls and definitions: = { } in Lua, and Java constructors.
TSConstant = { fg = cp.peach }, -- For constants TSConstant = { fg = cp.peach }, -- For constants
TSConditional = { fg = cl, style = "bold" }, -- For keywords related to conditionnals. TSConditional = { fg = cl, style = "bold" }, -- For keywords related to conditionnals.
TSRepeat = { fg = cl, style = "bold" }, -- For keywords related to loops. TSRepeat = { fg = cl, style = "bold" }, -- For keywords related to loops.
@ -58,7 +58,7 @@ 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 = delimeters }, -- For delimiters ie: . TSPunctDelimiter = { fg = cp.teal }, -- For delimiters ie: .
TSPunctBracket = { fg = delimeters }, -- 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.
@ -77,9 +77,9 @@ 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.flamingo, style = "italic,underline" }, -- urls, links and emails TSURI = { fg = cp.rosewater, style = "italic,underline" }, -- urls, links and emails
TSLiteral = { fg = cp.green, style = "italic" }, -- used for inline code in markdown and for doc in python (""") TSLiteral = { fg = cp.teal, style = "italic" }, -- used for inline code in markdown and for doc in python (""")
TSTextReference = { fg = cp.teal, style = "bold" }, -- references TSTextReference = { fg = cp.lavender, style = "bold" }, -- references
TSTitle = { fg = cp.blue, style = "bold" }, -- titles like: # Example TSTitle = { fg = cp.blue, style = "bold" }, -- titles like: # Example
TSEmphasis = { fg = cp.maroon, style = "italic" }, -- bold TSEmphasis = { fg = cp.maroon, style = "italic" }, -- bold
TSStrong = { fg = cp.maroon, style = "bold" }, -- italic TSStrong = { fg = cp.maroon, style = "bold" }, -- italic
@ -97,7 +97,7 @@ function M.get(cp)
javaTSConstant = { fg = cp.teal }, javaTSConstant = { fg = cp.teal },
-- typescript -- typescript
typescriptTSProperty = { fg = cp.mauve, style = "italic" }, -- Same as TSField. typescriptTSProperty = { fg = cp.lavender, style = "italic" }, -- Same as TSField.
-- css -- css
cssTSType = { fg = cp.lavender }, cssTSType = { fg = cp.lavender },

@ -1,14 +1,16 @@
local M = {} local M = {}
function M.get(cp) function M.get(cp)
local transparent_background = require("catppuccin.config").options.transparent_background
local bg_highlight = transparent_background and "NONE" or cp.black2
return { return {
rainbowcol1 = {bg = cp.black2, fg = cp.red}, rainbowcol1 = {bg = bg_highlight, fg = cp.red},
rainbowcol2 = {bg = cp.black2, fg = cp.teal}, rainbowcol2 = {bg = bg_highlight, fg = cp.teal},
rainbowcol3 = {bg = cp.black2, fg = cp.yellow}, rainbowcol3 = {bg = bg_highlight, fg = cp.yellow},
rainbowcol4 = {bg = cp.black2, fg = cp.blue}, rainbowcol4 = {bg = bg_highlight, fg = cp.blue},
rainbowcol5 = {bg = cp.black2, fg = cp.pink}, rainbowcol5 = {bg = bg_highlight, fg = cp.pink},
rainbowcol6 = {bg = cp.black2, fg = cp.flamingo}, rainbowcol6 = {bg = bg_highlight, fg = cp.flamingo},
rainbowcol7 = {bg = cp.black2, fg = cp.green}, rainbowcol7 = {bg = bg_highlight, fg = cp.green},
} }
end end

@ -117,23 +117,29 @@ function util.properties(tbl)
end end
function util.terminal(cp) function util.terminal(cp)
g.terminal_color_0 = cp.catppuccin1 g.terminal_color_0 = cp.gray0
g.terminal_color_1 = cp.catppuccin5 g.terminal_color_8 = cp.gray1
g.terminal_color_2 = cp.catppuccin7
g.terminal_color_3 = cp.catppuccin8 g.terminal_color_1 = cp.red
g.terminal_color_4 = cp.catppuccin9 g.terminal_color_9 = cp.red
g.terminal_color_5 = cp.catppuccin3
g.terminal_color_6 = cp.catppuccin4 g.terminal_color_2 = cp.green
g.terminal_color_7 = cp.catppuccin0 g.terminal_color_10 = cp.green
g.terminal_color_8 = cp.catppuccin1 g.terminal_color_3 = cp.yellow
g.terminal_color_9 = cp.catppuccin5 g.terminal_color_11 = cp.yellow
g.terminal_color_10 = cp.catppuccin7
g.terminal_color_11 = cp.catppuccin8 g.terminal_color_4 = cp.blue
g.terminal_color_12 = cp.catppuccin9 g.terminal_color_12 = cp.blue
g.terminal_color_13 = cp.catppuccin3
g.terminal_color_14 = cp.catppuccin4 g.terminal_color_5 = cp.pink
g.terminal_color_15 = cp.catppuccin0 g.terminal_color_13 = cp.pink
g.terminal_color_6 = cp.sky
g.terminal_color_14 = cp.sky
g.terminal_color_7 = cp.white
g.terminal_color_15 = cp.white
end end
function util.load(theme) function util.load(theme)

@ -4,7 +4,7 @@ local catppuccin = {}
catppuccin.normal = { catppuccin.normal = {
left = { { cp.black1, cp.blue }, { cp.blue, cp.black2 } }, left = { { cp.black1, cp.blue }, { cp.blue, cp.black2 } },
middle = { { cp.blue, cp.black4 } }, middle = { { cp.blue, cp.black4 } },
right = { { cp.black0, cp.black2 }, { cp.blue, cp.black2 } }, right = { { cp.gray0, cp.black2 }, { cp.blue, cp.black3 } },
error = { { cp.black1, cp.red } }, error = { { cp.black1, cp.red } },
warning = { { cp.black1, cp.yellow } }, warning = { { cp.black1, cp.yellow } },
} }

Loading…
Cancel
Save