Git Product home page Git Product logo

nix-idea's Introduction

NixIDEA - A Nix language plugin for IntelliJ IDEA

Build Status Version

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.

  • 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.

Credits

The Nix Snowflake (logo of NixOS) is designed by Tim Cuthbertson (@timbertson). It is made available under CC-BY license at NixOS/nixos-artwork. The variants used by this plugin may have been modified to comply with JetBrains' Guidelines.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.