📦 Better Lazy Config

- Use proper directory structure
- Loading order improved
This commit is contained in:
2024-07-16 17:35:52 -04:00
parent d05d335464
commit 302817f9dd
5 changed files with 41 additions and 40 deletions
+19
View File
@@ -0,0 +1,19 @@
-- -------------------------------- Commands -----------------------------------
-- Make :Q close all of the buffers
vim.api.nvim_create_user_command("Q", function()
vim.cmd.bdelete()
vim.cmd.qall()
end, { force = true })
-- ------------------------------ Auto-Commands --------------------------------
-- Autosave Colorscheme
vim.api.nvim_create_autocmd("ColorScheme", {
desc = "Store colorscheme name",
callback = function()
print("colorscheme:", vim.g.colors_name)
vim.fn.writefile(
{ vim.g.colors_name },
vim.fn.stdpath("config") .. "/.colorscheme"
)
end,
})