Editor Modes for Nix Files: Difference between revisions

From NixOS Wiki
imported>Makefu
initial batch of nixos-users
 
imported>Fadenb
m link fixup
Line 3: Line 3:
* 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]
* [@matthewbauer's nix-mode](https://github.com/matthewbauer/nix-mode)
* [https://github.com/matthewbauer/nix-mode @matthewbauer's nix-mode]
* [@marsam's nix-mode](https://github.com/emacs-pe/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

Revision as of 18:18, 21 August 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                                                                                                                                                                                                                                      
      };                                                                                                                                                                                                                                        
    })
  ];
}