NeoComposer.nvim icon indicating copy to clipboard operation
NeoComposer.nvim copied to clipboard

Plugin UI menu broken due to duplicate buffer name

Open uwla opened this issue 6 months ago • 3 comments

Sometimes the plugin UI menu gets broken due to duplicate buffer name. Possibly a conflict with another plugin and a hidden buffer?

NEOCOMPOSER

I cannot access the UI menu to edit the macros as in the screenshot above. This is the error.

Error  05:09:37 PM msg_show.lua_error E5108: Error executing lua .../share/nvim/lazy/NeoComposer.nvim/lua/NeoComposer/ui.lua:230: Vim:E95: Buffer with this name already exists
stack traceback:
	[C]: in function 'nvim_buf_set_name'
	.../share/nvim/lazy/NeoComposer.nvim/lua/NeoComposer/ui.lua:230: in function 'toggle_macro_menu'
	[string ":lua"]:1: in main chunk
Info  05:09:39 PM notify.info NeoComposer Macro Recording
Info  05:09:40 PM notify.info NeoComposer Macro Saved ()

However, if I delete the vim session and start a fresh one, it does work. Its seems to be duplicated buffername is the problem, and many neovim plugins like this one use temporary hidden buffers to show UIs in floating windows.

uwla avatar Aug 24 '24 20:08 uwla