Repository

markosnarinian/distill.nvim

distill.nvim

Automatically fold logging and debug-print statements in Neovim to declutter your code. Works with nvim-origami.

10stars

Open github.com

markosnarinian/distill.nvim

distill.nvim

Neovim plugin that automatically folds logging and debug-print statements while preserving normal code folds. Supports Python, Go, JavaScript, TypeScript, Rust, C++, Zig, Ruby, Java, PHP, Swift, Lua, and Dart.

Visit project

Show me a random project

First shared
Jun 21, 2026
HN activity
20

Show HN@markosnJun 21, 2026

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

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.

Community

Hacker News discussion

Loading the thread…