From 1c1060f0d187cd0939b05c1310bb58911e84bc22 Mon Sep 17 00:00:00 2001 From: champignoom <66909116+champignoom@users.noreply.github.com> Date: Thu, 7 Sep 2023 02:26:47 +0800 Subject: [PATCH] fix(toc): preserve heading hierarchy (#1053) fixes https://github.com/nvim-neorg/neorg/issues/1041 --- lua/neorg/modules/core/qol/toc/module.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/neorg/modules/core/qol/toc/module.lua b/lua/neorg/modules/core/qol/toc/module.lua index 3f7669083..94b34b1c9 100644 --- a/lua/neorg/modules/core/qol/toc/module.lua +++ b/lua/neorg/modules/core/qol/toc/module.lua @@ -256,6 +256,7 @@ module.on_event = function(event) module.required["core.ui"].create_vsplit("toc", { ft = "norg" }, (event.content[1] or "left") == "left") vim.api.nvim_win_set_option(window, "scrolloff", 999) + vim.api.nvim_win_set_option(window, "conceallevel", 0) module.public.update_toc(namespace, toc_title, event.buffer, event.window, buffer, window) local close_buffer_callback = function()