nvim-config/ftdetect/markdown.lua
2023-08-01 22:56:30 -06:00

13 lines
392 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
-- vim.o.formatoptions = vim.o.formatoptions .. "na"
-- TODO what's the proper spell for this shit
-- vim.opt.formatlistpat = "^\s*-"
end,
})