From a761624d9eff76b48aff61aa2f0b2682c3d18aeb Mon Sep 17 00:00:00 2001 From: Vhyrro Date: Sat, 6 May 2023 13:42:57 +0200 Subject: [PATCH] chore(qol.toc): add FIXME notice --- lua/neorg/modules/core/qol/toc/module.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/neorg/modules/core/qol/toc/module.lua b/lua/neorg/modules/core/qol/toc/module.lua index 52c885832..d400dfcd2 100644 --- a/lua/neorg/modules/core/qol/toc/module.lua +++ b/lua/neorg/modules/core/qol/toc/module.lua @@ -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")