Editor Modes for Nix Files: Difference between revisions

From NixOS Wiki
imported>Makefu
imported>Makefu
merge "nix expression language"
Line 24: Line 24:
** [https://github.com/NixOS/nix-idea nix-idea]
** [https://github.com/NixOS/nix-idea nix-idea]
* Eclipse
* Eclipse
** [https://github.com/NixOS/nix-eclipse nix-eclipse]
** [https://github.com/NixOS/nix-eclipse nix-eclipse] - development stopped in 2010
* Sublime Text
* Sublime Text
** [https://github.com/wmertens/sublime-nix sublime-nix]
** [https://github.com/wmertens/sublime-nix sublime-nix]
Line 35: Line 35:
* Far2l
* Far2l
** [https://github.com/NixOS/nixpkgs/pull/28238]
** [https://github.com/NixOS/nixpkgs/pull/28238]
=== Custom Nix Editors ===
* [https://github.com/seitz/nanonix nano] - simple SH

Revision as of 04:34, 6 October 2017

This is a list of editor modes for Nix syntax.

Usage:

{ # /etc/nixos/configuration.nix
  environment.systemPackages = [
    (pkgs.vim_configurable.customize {                                                                                                                                                                                                     
      name = "vim";                                                                                                                                                                                                                                                                                                                                 
      vimrcConfig.packages.myplugins = with pkgs.vimPlugins; {                                                                                                                                                                                                                                                                                                                                                                                                     
        start = [ vim-nix ]; # load plugin on startup                                                                                                                                                                                                                                      
      };                                                                                                                                                                                                                                        
    })
  ];
}

Custom Nix Editors