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

lua/substitute.lua:54: attempt to index field 'highlight_substituted_text' (a nil value)

Open martonivan opened this issue 4 months ago • 2 comments

I'm using substitute with neovim 0.10.1 configured by nixvim.

I'm receiving the following error after substituting anything with the plugin.

stack traceback:
	...imPackages/start/vimplugin-substitute/lua/substitute.lua:54: in function 'modifier'
	...imPackages/start/vimplugin-substitute/lua/substitute.lua:61: in function <...imPackages/start/vimplugin-substitute/lua/substitute.lua:37>

It would be beneficial to check the existence of the highlight_substituted_text member of subsitute.config before checking whether its enabled flag is set or not. https://github.com/gbprod/substitute.nvim/blob/97f49d16f8eea7967d41db4f657dd63af53eeba1/lua/substitute.lua#L54

martonivan avatar Oct 21 '24 11:10 martonivan