dev (formatter): formatted with StyLua lualine and lightline

dev-doc
Pocco81 3 years ago
parent 32346db348
commit 4eed8788a7

@ -1,44 +1,46 @@
local good, color_scheme = require("catppuccino.core.cs").get_color_scheme(require("catppuccino.config").options["cptcheme"])
local good, color_scheme = require("catppuccino.core.cs").get_color_scheme(
require("catppuccino.config").options["cptcheme"]
)
if not good then
print(color_scheme) -- error message
return
print(color_scheme) -- error message
return
end
local cpt = color_scheme
local catppuccino = {}
catppuccino.normal = {
left = {{cpt.black, cpt.blue}, {cpt.blue, cpt.bg}},
middle = {{cpt.blue, cpt.fg_gutter}},
right = {{cpt.fg_sidebar, cpt.bg_statusline}, {cpt.blue, cpt.bg}},
error = {{cpt.black, cpt.error}},
warning = {{cpt.black, cpt.warning}}
left = { { cpt.black, cpt.blue }, { cpt.blue, cpt.bg } },
middle = { { cpt.blue, cpt.fg_gutter } },
right = { { cpt.fg_sidebar, cpt.bg_statusline }, { cpt.blue, cpt.bg } },
error = { { cpt.black, cpt.error } },
warning = { { cpt.black, cpt.warning } },
}
catppuccino.insert = {
left = {{cpt.black, cpt.green}, {cpt.blue, cpt.bg}}
left = { { cpt.black, cpt.green }, { cpt.blue, cpt.bg } },
}
catppuccino.visual = {
left = {{cpt.black, cpt.magenta}, {cpt.blue, cpt.bg}}
left = { { cpt.black, cpt.magenta }, { cpt.blue, cpt.bg } },
}
catppuccino.replace = {
left = {{cpt.black, cpt.red}, {cpt.blue, cpt.bg}}
left = { { cpt.black, cpt.red }, { cpt.blue, cpt.bg } },
}
catppuccino.inactive = {
left = {{cpt.blue, cpt.bg_statusline}, {cpt.comment, cpt.bg}},
middle = {{cpt.fg_gutter, cpt.bg_statusline}},
right = {{cpt.fg_gutter, cpt.bg_statusline}, {cpt.comment, cpt.bg}}
left = { { cpt.blue, cpt.bg_statusline }, { cpt.comment, cpt.bg } },
middle = { { cpt.fg_gutter, cpt.bg_statusline } },
right = { { cpt.fg_gutter, cpt.bg_statusline }, { cpt.comment, cpt.bg } },
}
catppuccino.tabline = {
left = {{cpt.comment, cpt.bg_highlight}, {cpt.comment, cpt.bg}},
middle = {{cpt.fg_gutter, cpt.bg_statusline}},
right = {{cpt.fg_gutter, cpt.bg_statusline}, {cpt.comment, cpt.bg}},
tabsel = {{cpt.blue, cpt.fg_gutter}, {cpt.comment, cpt.bg}}
left = { { cpt.comment, cpt.bg_highlight }, { cpt.comment, cpt.bg } },
middle = { { cpt.fg_gutter, cpt.bg_statusline } },
right = { { cpt.fg_gutter, cpt.bg_statusline }, { cpt.comment, cpt.bg } },
tabsel = { { cpt.blue, cpt.fg_gutter }, { cpt.comment, cpt.bg } },
}
return catppuccino

@ -1,4 +1,6 @@
local err, color_scheme = require("catppuccino.core.cs").get_color_scheme(require("catppuccino.config").options["colorscheme"])
local err, color_scheme = require("catppuccino.core.cs").get_color_scheme(
require("catppuccino.config").options["colorscheme"]
)
if not err.status then
vim.api.nvim_err_writeln(err.msg)
@ -8,35 +10,35 @@ local cpt = color_scheme
local catppuccino = {}
catppuccino.normal = {
a = {bg = cpt.blue, fg = cpt.black},
b = {bg = cpt.fg_gutter, fg = cpt.blue},
c = {bg = cpt.bg_statusline, fg = cpt.fg_sidebar}
a = { bg = cpt.blue, fg = cpt.black },
b = { bg = cpt.fg_gutter, fg = cpt.blue },
c = { bg = cpt.bg_statusline, fg = cpt.fg_sidebar },
}
catppuccino.insert = {
a = {bg = cpt.green, fg = cpt.black},
b = {bg = cpt.fg_gutter, fg = cpt.green}
a = { bg = cpt.green, fg = cpt.black },
b = { bg = cpt.fg_gutter, fg = cpt.green },
}
catppuccino.command = {
a = {bg = cpt.orange, fg = cpt.black},
b = {bg = cpt.fg_gutter, fg = cpt.orange}
a = { bg = cpt.orange, fg = cpt.black },
b = { bg = cpt.fg_gutter, fg = cpt.orange },
}
catppuccino.visual = {
a = {bg = cpt.magenta, fg = cpt.black},
b = {bg = cpt.fg_gutter, fg = cpt.magenta}
a = { bg = cpt.magenta, fg = cpt.black },
b = { bg = cpt.fg_gutter, fg = cpt.magenta },
}
catppuccino.replace = {
a = {bg = cpt.red_bg, fg = cpt.black},
b = {bg = cpt.fg_gutter, fg = cpt.red_bg}
a = { bg = cpt.red_bg, fg = cpt.black },
b = { bg = cpt.fg_gutter, fg = cpt.red_bg },
}
catppuccino.inactive = {
a = {bg = cpt.bg_statusline, fg = cpt.blue},
b = {bg = cpt.bg_statusline, fg = cpt.fg_gutter, gui = "bold"},
c = {bg = cpt.bg_statusline, fg = cpt.fg_gutter}
a = { bg = cpt.bg_statusline, fg = cpt.blue },
b = { bg = cpt.bg_statusline, fg = cpt.fg_gutter, gui = "bold" },
c = { bg = cpt.bg_statusline, fg = cpt.fg_gutter },
}
return catppuccino

Loading…
Cancel
Save