From ba0f68dc6163ef8d2e2d98a52da9a0d107139578 Mon Sep 17 00:00:00 2001 From: Joost Agterhoek Date: Tue, 29 Oct 2024 14:37:41 +0100 Subject: [PATCH] changing markdown options to work best with and without Obsidian --- ftplugin/markdown.lua | 2 ++ lua/custom/plugins/render-markdown.lua | 3 +++ 2 files changed, 5 insertions(+) diff --git a/ftplugin/markdown.lua b/ftplugin/markdown.lua index 2848685..72f1eaf 100644 --- a/ftplugin/markdown.lua +++ b/ftplugin/markdown.lua @@ -1 +1,3 @@ vim.opt_local.conceallevel = 2 +vim.cmd 'autocmd BufEnter * set formatoptions-=cro' +vim.cmd 'autocmd BufEnter * setlocal formatoptions-=cro' diff --git a/lua/custom/plugins/render-markdown.lua b/lua/custom/plugins/render-markdown.lua index 564ff82..0e69f23 100644 --- a/lua/custom/plugins/render-markdown.lua +++ b/lua/custom/plugins/render-markdown.lua @@ -5,6 +5,9 @@ return { config = function() require('render-markdown').setup { enabled = true, + heading = { + width = 'block', + }, bullet = { right_pad = 1, },