From 243bf5d548b3ddb13a67064c890043afb0a7ed9c Mon Sep 17 00:00:00 2001 From: gzagatti Date: Wed, 4 Dec 2024 22:54:59 +0100 Subject: [PATCH] tweaks to org and markdown config --- nvim/init.lua | 42 ++++++++++++++++++++---------------------- 1 file changed, 20 insertions(+), 22 deletions(-) diff --git a/nvim/init.lua b/nvim/init.lua index 7d35f37..3c0d342 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -839,7 +839,7 @@ require'packer'.startup {function (use) -- do not add virtual text to title sections local captures = vim.treesitter.get_captures_at_pos(ctx.bufnr, lnum-1, 0) for _, c in pairs(captures) do - if c.capture:match("^text.title") then + if c.capture:match("^org.headline") then return virtText end end @@ -946,7 +946,7 @@ require'packer'.startup {function (use) vim.cmd [[ augroup pencil autocmd! - autocmd FileType tex,org,typst call pencil#init({'wrap': 'soft'}) + autocmd FileType tex,org,typst,markdown call pencil#init({'wrap': 'soft'}) augroup END ]] end @@ -1004,7 +1004,7 @@ require'packer'.startup {function (use) config = function () require'orgmode'.setup_ts_grammar() require'orgmode'.setup { - org_indent_mode = 'noindent', + org_startup_indented = false, mappings = { org = { org_do_promote = '