dev (formatter): formatted with StyLua main

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

@ -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

@ -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

@ -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

Loading…
Cancel
Save