Initial Commit

This commit is contained in:
Falon Clark
2026-03-19 13:09:21 -04:00
commit a7f8df9e50
24 changed files with 537 additions and 0 deletions

24
lua/config/autocmd.lua Normal file
View File

@@ -0,0 +1,24 @@
vim.api.nvim_create_autocmd("InsertEnter", {
callback = function()
vim.opt.number = false
vim.opt.relativenumber = true
end,
})
vim.api.nvim_create_autocmd("InsertLeave", {
callback = function()
vim.opt.number = true
vim.opt.relativenumber = false
end,
})
vim.api.nvim_create_autocmd({ "BufRead", "BufNewFile" }, {
pattern = { os.getenv("HOME") .. "/.local/share/chezmoi/*" },
callback = function(ev)
local bufnr = ev.buf
local edit_watch = function()
require("chezmoi.commands.__edit").watch(bufnr)
end
vim.schedule(edit_watch)
end,
})