fix: filetype patterns and add comment syntax for nvim 0.10

This commit is contained in:
Noah Masur 2024-05-28 11:08:22 -04:00
parent 6cf4c4979d
commit ab050582c1
No known key found for this signature in database

View File

@ -11,8 +11,22 @@ vim.filetype.add({
})
vim.api.nvim_create_autocmd("FileType", {
pattern = "*.eml",
pattern = "mail",
callback = function()
vim.o.wrapmargin = 79 -- Wrap text automatically
end,
})
vim.api.nvim_create_autocmd("FileType", {
pattern = "markdown",
callback = function()
vim.o.formatoptions = vim.o.formatopions + "a"
end,
})
vim.api.nvim_create_autocmd("FileType", {
pattern = "terraform",
callback = function()
vim.bo.commentstring = "# %s"
end,
})