From 4eed8788a76e1d9790bfc0e08408b42567e6e4cb Mon Sep 17 00:00:00 2001 From: Pocco81 Date: Wed, 25 Aug 2021 22:13:46 -0500 Subject: [PATCH] dev (formatter): formatted with StyLua lualine and lightline --- lua/lightline/colorscheme/catppuccino.lua | 38 ++++++++++++----------- lua/lualine/themes/catppuccino.lua | 32 ++++++++++--------- 2 files changed, 37 insertions(+), 33 deletions(-) diff --git a/lua/lightline/colorscheme/catppuccino.lua b/lua/lightline/colorscheme/catppuccino.lua index f95ada1..fb7ef0d 100644 --- a/lua/lightline/colorscheme/catppuccino.lua +++ b/lua/lightline/colorscheme/catppuccino.lua @@ -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 diff --git a/lua/lualine/themes/catppuccino.lua b/lua/lualine/themes/catppuccino.lua index c512927..d5e982b 100644 --- a/lua/lualine/themes/catppuccino.lua +++ b/lua/lualine/themes/catppuccino.lua @@ -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