13 lines
392 B
Lua
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,
|
|
})
|