Changing the events key in the options doesn't change any behavior. This patch fixed it for me:
diff --git a/lua/diagram/init.lua b/lua/diagram/init.lua
index d5affa2..14bbdd3 100644
--- a/lua/diagram/init.lua
+++ b/lua/diagram/init.lua
@@ -111,6 +111,7 @@ local setup = function(opts)
state.integrations = opts.integrations or state.integrations
state.renderer_options = vim.tbl_deep_extend("force", state.renderer_options, opts.renderer_options or {})
+ state.events = vim.tbl_deep_extend("force", state.events, opts.events or {})
local current_bufnr = vim.api.nvim_get_current_buf()
local current_winnr = vim.api.nvim_get_current_win()
Changing the events key in the options doesn't change any behavior. This patch fixed it for me: