A Neovim plugin that dims inactive code portions using TreeSitter for enhanced focus.
Twilight is a Neovim plugin that dims inactive portions of code during editing to help developers maintain focus on the active section. It uses TreeSitter to intelligently identify syntax-based inactive regions, providing more accurate dimming than traditional line-based methods. The plugin reduces visual clutter and enhances concentration by highlighting only the relevant code context.
Neovim users (version 0.5+) who want to improve their coding focus through visual aids, particularly developers working in complex codebases or those seeking distraction-free editing environments.
Developers choose Twilight for its precise TreeSitter-based dimming, which offers smarter context awareness than alternatives like Limelight, along with seamless integration with zen-mode for a complete focused editing workflow.
🌅 Twilight is a Lua plugin for Neovim 0.5 that dims inactive portions of the code you're editing using TreeSitter.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Uses TreeSitter to precisely identify inactive code blocks based on syntax trees, offering more intelligent dimming than regex-based alternatives like Limelight.
Allows adjustment of alpha transparency, color settings, and terminal background for personalized dimming effects, as detailed in the configuration options.
Preserves a configurable number of lines around the current line to maintain coding context while reducing visual clutter, enhancing focus during editing.
Seamlessly activates with the zen-mode.nvim plugin for a unified distraction-free editing experience, as noted in the README for enhanced workflow.
Relies on TreeSitter being installed and functional for the filetype, which can fail for unsupported languages or add setup overhead compared to simpler plugins.
Exclusively supports Neovim 0.5+, excluding Vim users and those on older versions, reducing its applicability in mixed editor environments.
Requires manual tuning of parameters like dimming alpha and expandable nodes, which might be daunting for users seeking out-of-the-box solutions without tweaking.