feat: add rename func; format files

This commit is contained in:
Devin Haska 2024-04-29 08:58:14 -07:00
parent 7afc4aab72
commit 8f87ddde79
6 changed files with 145 additions and 144 deletions

View file

@ -1,14 +1,14 @@
local function augroup(name)
return vim.api.nvim_create_augroup("wf_" .. name, { clear = true })
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
vim.opt_local.wrap = true
end,
group = augroup("spellcheck"),
pattern = { "gitcommit", "markdown", "md", "mdx" },
callback = function()
vim.opt_local.spell = true
vim.opt_local.wrap = true
end,
})
-- vim.api.nvim_create_autocmd({ "FileType" }, {