nvim-config/ftdetect/markdown.lua
secretspecter b267732f5b Markdown tuning
Obsidian does line-oriented Markdown it seems.
So I copied the .gmi configuration over to .md.
I also updated the journal pathing which now has a folder for each year
AND each month.
2024-03-05 08:04:01 -07:00

16 lines
421 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.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")
end,
})