dev (formatter): formatted with StyLua main

dev-doc
Pocco81 3 years ago
parent 4eed8788a7
commit 685a90ad9a

@ -2,8 +2,8 @@
local config = {} local config = {}
config.options = { config.options = {
colorscheme = "catppuccino", colorscheme = "catppuccino",
transparency = false, transparency = false,
styles = { styles = {
comments = "italic", comments = "italic",
functions = "italic", functions = "italic",
@ -19,8 +19,8 @@ config.options = {
errors = "italic", errors = "italic",
hints = "italic", hints = "italic",
warnings = "italic", warnings = "italic",
information = "italic" information = "italic",
} },
}, },
lsp_trouble = false, lsp_trouble = false,
lsp_saga = false, lsp_saga = false,
@ -28,8 +28,8 @@ config.options = {
gitsigns = false, gitsigns = false,
telescope = false, telescope = false,
nvimtree = { nvimtree = {
enabled = false, enabled = false,
show_root = false, show_root = false,
}, },
which_key = false, which_key = false,
indent_blankline = false, indent_blankline = false,
@ -40,12 +40,12 @@ config.options = {
barbar = false, barbar = false,
bufferline = false, bufferline = false,
markdown = false, markdown = false,
} },
} }
function config.set_options(opts) function config.set_options(opts)
opts = opts or {} opts = opts or {}
config.options = vim.tbl_deep_extend("force", config.options, opts) config.options = vim.tbl_deep_extend("force", config.options, opts)
end end
return config return config

@ -1,12 +1,12 @@
local M = {} local M = {}
function M.load() function M.load()
require("catppuccino.main").main("load") require("catppuccino.main").main("load")
end end
function M.setup(custom_opts, remaps) function M.setup(custom_opts, remaps)
remaps = remaps or {} remaps = remaps or {}
require("catppuccino.config").set_options(custom_opts) require("catppuccino.config").set_options(custom_opts)
require("catppuccino.core.cs").set_remaps(remaps) require("catppuccino.core.cs").set_remaps(remaps)
end end

@ -5,26 +5,26 @@ local utils = require("catppuccino.utils.util")
local function load(args) local function load(args)
local catppuccino = require("catppuccino") local catppuccino = require("catppuccino")
if (catppuccino.before_loading ~= nil) then if catppuccino.before_loading ~= nil then
catppuccino.before_loading() catppuccino.before_loading()
end end
local theme = require("catppuccino.core.mapper").apply(args) local theme = require("catppuccino.core.mapper").apply(args)
utils.load(theme) utils.load(theme)
if (catppuccino.after_loading ~= nil) then if catppuccino.after_loading ~= nil then
catppuccino.after_loading() catppuccino.after_loading()
end end
end end
function M.main(option, args) function M.main(option, args)
option = option or "load" option = option or "load"
if (option == "load") then if option == "load" then
load(args) load(args)
else else
print("Catppuccino: command was not recognized") print("Catppuccino: command was not recognized")
end end
end end
return M return M

Loading…
Cancel
Save