b267732f5b
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.
16 lines
421 B
Lua
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,
|
|
})
|