feat: revise config for markdown etc

This commit is contained in:
Devin Haska 2025-05-27 11:54:48 -07:00
parent 9c64eaf5f4
commit 207d41651a
2 changed files with 10 additions and 3 deletions

View file

@ -7,6 +7,15 @@ vim.api.nvim_create_autocmd({ "FileType" }, {
pattern = { "gitcommit", "markdown", "md", "mdx" },
callback = function()
vim.opt_local.spell = true
vim.opt_local.wrap = true
end,
})
vim.api.nvim_create_autocmd({ "FileType" }, {
group = augroup("prose"),
pattern = { "gitcommit", "markdown", "md", "mdx" },
callback = function()
vim.opt_local.wrap = true
vim.opt_local.textwidth = 80
vim.opt_local.linebreak = true
end,
})