Skip to content

Commit

Permalink
fix(toc): preserve heading hierarchy (#1053)
Browse files Browse the repository at this point in the history
fixes #1041
  • Loading branch information
champignoom committed Sep 6, 2023
1 parent a8f7a9e commit 1c1060f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/neorg/modules/core/qol/toc/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 1c1060f

Please sign in to comment.