Added spell check to markdown files

This commit is contained in:
2023-10-02 08:32:44 -04:00
parent 19229a2b90
commit ca0c0b1ca0
2 changed files with 11 additions and 7 deletions

View File

@@ -21,10 +21,14 @@ vim.api.nvim_create_autocmd(
"BufEnter",
{
pattern = { "*.md", "*.markdown" },
command = "setlocal textwidth=80",
group = markdownGroup
group = markdownGroup,
callback = function(event)
vim.cmd.setlocal('textwidth=80')
vim.cmd.setlocal('spell spelllang=en_us')
end
}
)
vim.api.nvim_create_autocmd(
"BufWritePre",
{