Skip to content
forked from NixOS/nix-idea

Fork of Nix plugin for the IntelliJ IDEA IDE

License

Notifications You must be signed in to change notification settings

JojOatXGME/nix-idea

 
 

Repository files navigation

NixIDEA - A Nix language plugin for IntelliJ IDEA

Build Status Version

This is not the official NixIDEA plugin but a separate distribution to test the publication process.

This plugin has the goal of being generally useful when working with nixpkgs/NixOS/nixops, it aims to provide the following:

  • Syntax Highlighting
  • Linting
  • Profile management
  • Suggestions for:
    • Attributes
    • Builtins
    • Filesystem paths
  • Templates for common usage patterns

Install

From JetBrains marketplace

The plugin can be found at the Jetbrains plugin repository as NixIDEA.

  • 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 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 11 or higher on your PATH
  • Only on NixOS: Setup JetBrains Runtime (JBR) from <nixpkgs>
    nix-build '<nixpkgs>' -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.

./gradlew build

You should then find the plugin at build/distributions/NixIDEA-<version>.zip.

About

Fork of Nix plugin for the IntelliJ IDEA IDE

Resources

License

Stars

Watchers

Forks

Languages

  • Java 83.9%
  • Kotlin 8.2%
  • Lex 5.4%
  • Nix 2.5%