Editor Modes for Nix Files: Difference between revisions

From NixOS Wiki
imported>Fadenb
m link fixup
imported>Volth
No edit summary
Line 33: Line 33:
* Howl
* Howl
* [https://github.com/rokf/howl-nix howl-nix]
* [https://github.com/rokf/howl-nix howl-nix]
* Far2l
* [https://github.com/NixOS/nixpkgs/pull/28238]

Revision as of 21:56, 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 = "vim";                                                                                                                                                                                                                                                                                                                                 
      vimrcConfig.packages.myplugins = with pkgs.vimPlugins; {                                                                                                                                                                                                                                                                                                                                                                                                     
        start = [ vim-nix ]; # load plugin on startup                                                                                                                                                                                                                                      
      };                                                                                                                                                                                                                                        
    })
  ];
}