neovim/lua/autocmds.lua
Devin Haska 10e4a3af37
V2 (#1)
Co-authored-by: Devin Haska <wonderfulfrog@users.noreply.github.com>
2024-05-10 11:26:26 -07:00

12 lines
350 B
Lua

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
vim.opt_local.wrap = true
end,
})