feat: revise config for markdown etc

This commit is contained in:
Devin Haska 2024-06-17 12:14:07 -07:00
parent 0ef76a68af
commit 339d648dc4
No known key found for this signature in database
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,
})