Skip to content

Commit

Permalink
ref(core.norg.qol.toc): Add newline after toc title
Browse files Browse the repository at this point in the history
  • Loading branch information
danymat committed Mar 29, 2023
1 parent c5f73ba commit 01d8a9b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/neorg/modules/core/norg/qol/toc/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ module.public = {
update_toc = function(namespace, toc_title, original_buffer, original_window, ui_buffer, ui_window)
vim.api.nvim_buf_clear_namespace(original_buffer, namespace, 0, -1)

table.insert(toc_title, "")
vim.api.nvim_buf_set_lines(ui_buffer, 0, -1, true, toc_title)
local offset = vim.api.nvim_buf_line_count(ui_buffer)

Expand Down

0 comments on commit 01d8a9b

Please sign in to comment.