initial commit

This commit is contained in:
iris committed 2022-08-02 16:36:22 -04:00
commit 31ebe341c3
13 files changed
+278

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
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,
command = cmd,
})
end
for _, path in ipairs({
"general.lua",
"theme.lua",
"mappings/*.lua",
"neovide.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")