12 lines
379 B
Lua
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,
|
||
|
})
|