nvim-config/ftdetect/markdown.lua

12 lines
379 B
Lua
Raw Normal View History

2023-07-30 20:41:04 +00:00
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,
})