Skip to content

Commit

Permalink
fix(toc): preserve heading hierarchy
Browse files Browse the repository at this point in the history
  • Loading branch information
champignoom committed Sep 5, 2023
1 parent 20502e5 commit 26f65d4
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 26f65d4

Please sign in to comment.