Skip to content

Commit

Permalink
chore(qol.toc): add FIXME notice
Browse files Browse the repository at this point in the history
  • Loading branch information
vhyrro committed May 6, 2023
1 parent 489c6a1 commit a761624
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/neorg/modules/core/qol/toc/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,8 @@ module.on_event = function(event)
return
end

-- FIXME(vhyrro): When the buffer already exists then simply refresh the buffer
-- instead of erroring out.
local namespace = vim.api.nvim_create_namespace("neorg/toc")
local buffer, window =
module.required["core.ui"].create_vsplit("toc", { ft = "norg" }, (event.content[1] or "left") == "left")
Expand Down

0 comments on commit a761624

Please sign in to comment.