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

README problems

Open aMOPel opened this issue 2 years ago • 2 comments

Hi there,

This looks like a great plugin.

I noticed some problems, when setting up according to the readme:

  1. the terminal settings:
	term = {
		height = 0.7,
		width = 0.5,
		type = "smart",
		border = "single",
		jump_to_end = true,
		auto_close = false,
	},

should use kind instead of type, since that's what you use in your code.

  1. it isn't mentioned anywhere that you require a global key in the custom_recipes table. You are iterating over that global key in your code without any guards, so if it isn't there you produce a bunch of errors. This is even true for your premade custom recipes require'recipe.ft'. They also don't contain the global and thus you get a bunch of errors, so you should change those, too or add a guard when using the global key in your code.

Thanks for the great work. Keep it up :)

aMOPel avatar Nov 01 '22 11:11 aMOPel