feat: config refresh

This commit is contained in:
Devin Haska 2025-05-27 11:54:49 -07:00
parent f19c3e021d
commit 2a9d2537e1
16 changed files with 217 additions and 233 deletions

19
lua/config/autocmds.lua Normal file
View file

@ -0,0 +1,19 @@
local function augroup(name)
return vim.api.nvim_create_augroup("wf_" .. name, { clear = true })
end
vim.api.nvim_create_autocmd({ "FileType" }, {
group = augroup("spellcheck"),
pattern = { "gitcommit", "markdown", "md", "mdx" },
callback = function()
vim.opt_local.spell = true
end,
})
vim.api.nvim_create_autocmd({ "FileType" }, {
group = augroup("prose"),
pattern = { "gitcommit", "markdown", "md", "mdx" },
callback = function()
vim.opt_local.wrap = true
end,
})