set spell check for markdown, markdown extended, and text files

This commit is contained in:
JesseBot 2023-10-13 15:52:02 +02:00
parent a2ff8bca42
commit 0b4b172d5f

View file

@ -107,6 +107,13 @@ vim.api.nvim_create_autocmd({"BufEnter", "BufWinEnter"}, {
end,
})
-- autocommand to only set 81 character line limit on python, go, yaml, and shell scripts
vim.api.nvim_create_autocmd({"BufEnter", "BufWinEnter"}, {
pattern = {"*.txt", "*.md", "*.mdx"},
callback = function()
vim.cmd("set spell")
end,
})
require('user.tree-sitter')