🧠 Reorganize packaging

- Better organized and more efficient
This commit is contained in:
2024-07-16 14:37:11 -04:00
parent 0648c5d38b
commit fcfb8e6e00
13 changed files with 185 additions and 91 deletions
+23
View File
@@ -0,0 +1,23 @@
-- -----------------------------------------------------------------------------
-- -------------------------------- PRE-LOAD -----------------------------------
-- -----------------------------------------------------------------------------
-- Restore Leader Key
if vim.fn.filereadable(vim.fn.stdpath("config") .. "/.leader") == 1 then
-- Load Stored Leader Key
vim.g.mapleader = vim.fn.readfile(vim.fn.stdpath("config") .. "/.leader")[1]
else
-- Set Default Leader Key
vim.g.mapleader = " "
end
-- Restore Colorscheme to variable
if vim.fn.filereadable(vim.fn.stdpath("config") .. "/.colorscheme") == 1 then
-- Load the stored colorscheme
STORED_THEME = vim.fn.readfile(vim.fn.stdpath("config") .. "/.colorscheme")[1]
else
-- Get the kitty theme
if os.getenv("KITTY_THEME") then
KITTY_THEME = os.getenv("KITTY_THEME")
end
end