nvim-config/ftdetect/markdown.lua
2023-07-30 14:41:04 -06:00

12 lines
379 B
Lua

vim.api.nvim_create_autocmd({ "BufNewFile", "BufFilePost", "BufRead" }, {
pattern = "*.md",
callback = function()
vim.bo.filetype = "markdown"
vim.bo.syntax = "markdown"
vim.o.colorcolumn = "80"
vim.o.textwidth = 80
-- autoformating is nice but it fucks with lists and other things kinda
-- vim.o.formatoptions = vim.o.formatoptions .. "a"
end,
})