Editor Modes for Nix Files: Difference between revisions

From NixOS Wiki
imported>Volth
No edit summary
imported>Mic92
No edit summary
Line 2: Line 2:


* Emacs
* Emacs
* [https://github.com/NixOS/nix/blob/master/misc/emacs/nix-mode.el nix-mode official] available in [https://melpa.org/ melpa]
** [https://github.com/NixOS/nix/blob/master/misc/emacs/nix-mode.el nix-mode official] available in [https://melpa.org/ melpa]
* [https://github.com/matthewbauer/nix-mode @matthewbauer's nix-mode]
** [https://github.com/matthewbauer/nix-mode @matthewbauer's nix-mode]
* [https://github.com/emacs-pe/nix-mode @marsam's nix-mode]
** [https://github.com/emacs-pe/nix-mode @marsam's nix-mode]
* [https://github.com/shlevy/nix-buffer nix-buffer]
** [https://github.com/shlevy/nix-buffer nix-buffer]
* Vim
* Vim
* [https://github.com/LnL7/vim-nix vim-nix]
** [https://github.com/LnL7/vim-nix vim-nix]


Usage:
Usage:


<pre class="nix">{ # /etc/nixos/configuration.nix
<syntaxHighlight lang="nix">{ # /etc/nixos/configuration.nix
   environment.systemPackages = [
   environment.systemPackages = [
     (pkgs.vim_configurable.customize {                                                                                                                                                                                                     
     (pkgs.vim_configurable.customize {                                                                                                                                                                                                     
Line 20: Line 20:
     })
     })
   ];
   ];
}</pre>
}</syntaxHighlight>
 
* IntelliJ IDEA
* IntelliJ IDEA
* [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]
* Sublime Text
* Sublime Text
* [https://github.com/wmertens/sublime-nix sublime-nix]
** [https://github.com/wmertens/sublime-nix sublime-nix]
* Atom
* Atom
* [https://github.com/wmertens/atom-nix atom-nix]
** [https://github.com/wmertens/atom-nix atom-nix]
* Visual Studio Code
* Visual Studio Code
* [https://github.com/bbenoist/vscode-nix vscode-nix]
** [https://github.com/bbenoist/vscode-nix vscode-nix]
* Howl
* Howl
* [https://github.com/rokf/howl-nix howl-nix]
** [https://github.com/rokf/howl-nix howl-nix]
* Far2l
* Far2l
* [https://github.com/NixOS/nixpkgs/pull/28238]
** [https://github.com/NixOS/nixpkgs/pull/28238]

Revision as of 22:16, 22 August 2017

This is a list of editor modes for Nix syntax.

Usage:

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