Settings

Theme

Show HN: Fold-logging.nvim – fold logging and debug-print statements in Neovim

github.com

2 points by markosn a month ago · 0 comments · 1 min read

Reader

I made this because I often keep debug logs and print statements around while working, but I don’t want them to dominate the file when I’m reading or reviewing code.

fold-logging.nvim adds folds for logging/debug-print statements while leaving normal code folds alone. Python is built in for now, and other languages can be added with Treesitter call node types and Lua patterns.

It currently supports commands to fold, unfold, toggle, refresh, and list detections in quickfix.

I’d be interested in feedback on whether the detection rules are lacking, and which languages would be worth supporting by default.

No comments yet.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection