# oxalica/nil

NIx Language server, an incremental analysis assistant for writing in Nix.

Repository: https://github.com/oxalica/nil
Canonical: https://ross.abutalabs.com/products/nil
Language: Rust
License: Apache-2.0
License Family: permissive
Topics: lsp-server, nix, nixos, nixpkgs
Last push: 2026-07-26T01:21:42+00:00

## Health v2 (maintenance only)
Score: 84/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 94, release rhythm 62, longevity 100
- inputs: {"age_days": 1506, "days_push": 39, "days_rel": 41, "gap_med": 404, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1901, forks 71 (observed 2026-08-28T04:05:51.589315+00:00)

## What it is
nil is a Nix language server (LSP) written in Rust that provides incremental analysis assistance for writing Nix code. It integrates with editors like Neovim and Vim via LSP to offer completion, diagnostics, and formatting for Nix and NixOS configurations.

## Use cases
- get autocomplete and diagnostics when editing nix files
- set up a nix language server in neovim
- lint and format flake.nix configurations
- write nixos modules with editor support
- integrate nix language support into vim via coc.nvim

## When to choose
- you write Nix or NixOS configurations and want IDE-like features in your editor
- you need an actively maintained, fast LSP server for Nix
- you use Neovim, Vim, or any LSP-capable editor with Nix files

## When to avoid
- you don't work with the Nix language
- you need a full Nix evaluator or build tool rather than a language server

## Facets
- artifact type: cli-tool
- maturity: active
- function: linter, developer-tools, parser
- domain: developer-tools, programming-languages
- platform: cli, cross-platform
- tags: nix, language-server, lsp, nixos, nixpkgs, editor-integration, devops, linux, macos

## Member repositories
- oxalica/nil (main) score 84

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:51.589315+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-30T03:11:57.477325+00:00, confidence not recorded.
  - readme: https://github.com/oxalica/nil (fetched 2026-08-28T04:05:51.589315+00:00, sha 75bc3983a81f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
