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"
|
2024-03-05 15:04:01 +00:00
|
|
|
vim.bo.textwidth = 0
|
|
|
|
vim.bo.comments = ""
|
|
|
|
vim.o.colorcolumn = ""
|
|
|
|
vim.o.wrap = true
|
|
|
|
vim.o.linebreak = true
|
|
|
|
vim.keymap.set({"n"}, "j", "gj")
|
|
|
|
vim.keymap.set({"n"}, "k", "gk")
|
2023-07-30 20:41:04 +00:00
|
|
|
end,
|
|
|
|
})
|