fold-logging.nvim - Fold logging calls in nvim to visually declutter your code.
by•
Automatically fold logging and debug-print statements in Neovim to declutter your code. Works with nvim-origami.
Replies
Best
Maker
📌
I was creating an ingestion pipeline for memecoin data. My code soon became full of five to six `logger.debug` and `logger.info` calls which cluttered my code and made it hard to navigate. So I built a Neovim plugin that automatically folds your logging-related code to make it easier to see the code that actually matters.
A nice feature that I published today is auto-folding statements when writing the file to disk without force-refolding the other folds. The plugin is fully configurable, and contributions are welcome. You can also set up autoCMDs to run this when exiting normal mode or when formatting the code. You can add support for other languages or logging libraries using regex patterns.
Replies