refactored and switched to config with packer

This commit is contained in:
iris committed 2022-08-02 19:37:22 -04:00
1 parent efece83eb8
commit f5b6ec34ad
19 files changed
+325 -259

No files matched your search

+5 -6
View File
@@ -3,18 +3,17 @@ local group = vim.api.nvim_create_augroup("reload", {})
local post_write = function(path, cmd)
vim.api.nvim_create_autocmd("BufWritePost", {
group = group,
pattern = "**/lua/bryan/" .. path,
pattern = "**/lua/config/" .. path,
command = cmd,
})
end
for _, path in ipairs({
"general.lua",
"theme.lua",
"mappings/*.lua",
"neovide.lua",
"reload.lua",
"settings.lua",
"utils.lua"
}) do post_write(path, "source <afile>") end
-- allows you to install and clean plugins after writing to the file
post_write("plugins/plugins.lua", "source <afile> | PackerCompile")
post_write("plugins.lua", "source <afile> | PackerCompile")