From 685a90ad9a60ac677137f435134da4cd22b71e17 Mon Sep 17 00:00:00 2001 From: Pocco81 Date: Wed, 25 Aug 2021 22:14:16 -0500 Subject: [PATCH] dev (formatter): formatted with StyLua main --- lua/catppuccino/config.lua | 18 +++++++++--------- lua/catppuccino/init.lua | 4 ++-- lua/catppuccino/main.lua | 22 +++++++++++----------- 3 files changed, 22 insertions(+), 22 deletions(-) diff --git a/lua/catppuccino/config.lua b/lua/catppuccino/config.lua index d729971..0f7d511 100644 --- a/lua/catppuccino/config.lua +++ b/lua/catppuccino/config.lua @@ -2,8 +2,8 @@ local config = {} config.options = { - colorscheme = "catppuccino", - transparency = false, + colorscheme = "catppuccino", + transparency = false, styles = { comments = "italic", functions = "italic", @@ -19,8 +19,8 @@ config.options = { errors = "italic", hints = "italic", warnings = "italic", - information = "italic" - } + information = "italic", + }, }, lsp_trouble = false, lsp_saga = false, @@ -28,8 +28,8 @@ config.options = { gitsigns = false, telescope = false, nvimtree = { - enabled = false, - show_root = false, + enabled = false, + show_root = false, }, which_key = false, indent_blankline = false, @@ -40,12 +40,12 @@ config.options = { barbar = false, bufferline = false, markdown = false, - } + }, } function config.set_options(opts) - opts = opts or {} - config.options = vim.tbl_deep_extend("force", config.options, opts) + opts = opts or {} + config.options = vim.tbl_deep_extend("force", config.options, opts) end return config diff --git a/lua/catppuccino/init.lua b/lua/catppuccino/init.lua index 443a956..aeb5d9c 100644 --- a/lua/catppuccino/init.lua +++ b/lua/catppuccino/init.lua @@ -1,12 +1,12 @@ local M = {} function M.load() - require("catppuccino.main").main("load") + require("catppuccino.main").main("load") end function M.setup(custom_opts, remaps) remaps = remaps or {} - require("catppuccino.config").set_options(custom_opts) + require("catppuccino.config").set_options(custom_opts) require("catppuccino.core.cs").set_remaps(remaps) end diff --git a/lua/catppuccino/main.lua b/lua/catppuccino/main.lua index a8396de..84749a8 100644 --- a/lua/catppuccino/main.lua +++ b/lua/catppuccino/main.lua @@ -5,26 +5,26 @@ local utils = require("catppuccino.utils.util") local function load(args) local catppuccino = require("catppuccino") - if (catppuccino.before_loading ~= nil) then - catppuccino.before_loading() - end + if catppuccino.before_loading ~= nil then + catppuccino.before_loading() + end local theme = require("catppuccino.core.mapper").apply(args) utils.load(theme) - if (catppuccino.after_loading ~= nil) then - catppuccino.after_loading() - end + if catppuccino.after_loading ~= nil then + catppuccino.after_loading() + end end function M.main(option, args) - option = option or "load" + option = option or "load" - if (option == "load") then + if option == "load" then load(args) - else - print("Catppuccino: command was not recognized") - end + else + print("Catppuccino: command was not recognized") + end end return M