# folke/twilight.nvim

🌅  Twilight is a Lua plugin for Neovim 0.5 that dims inactive portions of the code you're editing using TreeSitter.

Repository: https://github.com/folke/twilight.nvim
Canonical: https://ross.abutalabs.com/products/twilightnvim
Language: Lua
License: Apache-2.0
License Family: permissive
Topics: neovim, neovim-plugin, treesitter, tree-sitter
Last push: 2025-10-28T15:02:10+00:00

## Health v2 (maintenance only)
Score: 45/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 49, release rhythm 8, longevity 100
- inputs: {"age_days": 1878, "days_push": 309, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1548, forks 26 (observed 2026-08-28T04:05:01.878304+00:00)

## What it is
Twilight is a Lua plugin for Neovim 0.5+ that dims inactive portions of the code you're editing using TreeSitter for accurate code-aware dimming. It pairs well with zen-mode.nvim for a distraction-free editing experience.

## Use cases
- dim inactive code in neovim to focus on what I'm editing
- get a zen-mode-like focused coding experience in neovim
- highlight only the current function while dimming the rest of the file
- reduce visual clutter when reading or editing large files
- find a modern treesitter-based alternative to limelight.vim

## When to choose
- you use Neovim 0.5+ and want code-aware dimming powered by TreeSitter
- you want automatic integration with zen-mode.nvim
- you need configurable context lines and expandable node types

## When to avoid
- you use Vim or an editor other than Neovim
- you don't have TreeSitter parsers available for your filetypes
- you prefer full-file highlighting without dimming

## Facets
- artifact type: plugin
- maturity: active
- function: editor, ui-components, theme
- domain: developer-tools, text-editors
- platform: cli, cross-platform
- tags: neovim-plugin, treesitter, focus-mode, lua, zen-mode, neovim

## Member repositories
- folke/twilight.nvim (main) score 45

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:01.878304+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:30:25.699539+00:00, confidence not recorded.
  - readme: https://github.com/folke/twilight.nvim (fetched 2026-08-28T04:05:01.878304+00:00, sha 2357e0c53841)
- Data as of 2026-08-30T08:39:29.467469+00:00.
