https://github.com/NixOS/nix-idea
Nix plugin for the IntelliJ IDEA IDE
https://github.com/NixOS/nix-idea
Last synced: 8 months ago
JSON representation
Nix plugin for the IntelliJ IDEA IDE
- Host: GitHub
- URL: https://github.com/NixOS/nix-idea
- Owner: NixOS
- License: apache-2.0
- Created: 2016-09-08T08:44:59.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2025-08-20T15:43:35.000Z (9 months ago)
- Last Synced: 2025-08-20T17:47:03.888Z (9 months ago)
- Language: Java
- Size: 974 KB
- Stars: 198
- Watchers: 45
- Forks: 30
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-starred - NixOS/nix-idea - Nix plugin for the IntelliJ IDEA IDE (Java)
- best-of-nix - GitHub - 31% open · ⏱️ 20.08.2025) (Editors and IDEs)
README
# NixIDEA - A Nix language plugin for IntelliJ IDEA
[][build-status]
[][marketplace]
This plugin has the goal of being generally useful when working with nixpkgs/NixOS/nixops.
It currently adds support for the Nix language.
The following features are available:
* Syntax Highlighting
* Real time detection of syntax errors
We would also like to provide additional support for Nix/NixOS/NixOps,
but the following features are currently **not implemented**:
* Linting, code completion, formatting
* Profile management
* Run configurations
* Templates for common usage patterns
## Install
### From JetBrains marketplace
The plugin can be found at the Jetbrains plugin repository as
[NixIDEA][marketplace].
* Goto **File > Settings > Plugins > Marketplace**
* Type **NixIDEA** into the search bar
* Click **Install**
### From ZIP file
You can also install the plugin from a ZIP file.
* Goto **File > Settings > Plugins**
* Click onto the **wheel icon** on the top
* Choose **Install Plugin from Disk**
You can find corresponding ZIP files [on GitHub][releases] or build them
yourself as described below.
## Build
### Build preparation
Follow the following steps before you build the project the first time.
* Clone the repository
* Ensure that you have a JDK for Java 17 or higher on your PATH
* Only on NixOS: Setup JetBrains Runtime (JBR) from ``
```sh
nix-build '' -A jetbrains.jdk -o jbr
```
### Build execution
After you have completed the preparation, you can build the plugin by
running the `build` task in Gradle.
```sh
./gradlew build
```
You should then find the plugin at
`build/distributions/NixIDEA-.zip`.
## Credits
The *Nix Snowflake* (logo of NixOS) is designed by Tim Cuthbertson (@timbertson).
It is made available under [CC-BY license](https://creativecommons.org/licenses/by/4.0/)
at [NixOS/nixos-artwork](https://github.com/NixOS/nixos-artwork/tree/master/logo).
The variants used by this plugin may have been modified to comply with JetBrains' Guidelines.
[build-status]:
"Latest builds at GitHub Actions"
[marketplace]:
"NixIDEA on JetBrains Marketplace"
[releases]:
"Releases · NixOS/nix-idea"