frabjous/knap

How to disable logs

prescientmoon opened this issue · 3 comments

The plugin keeps printing process successful; refresh preview every time I type, which is extremly distracting for people like me who use cmdheight = 0. Is there a way to disable those logs?

There's nothing built in to prevent that at present (cmdheight = 0 is not something I'd ever consider), but it's not a hard change to make if you want to make it yourself. Open the file lua/knap.lua and comment out (with -- line 372, print("process successful; refreshing viewer") to become -- print("process successful; refreshing viewer").

@frabjous Should I open a pr with this?

Not simply for disabling it as suggested. If you make it a true option that can be toggled on or off with an option, then sure.