Editor Modes for Nix Files: Difference between revisions
imported>Makefu No edit summary |
imported>Marsam m Remove trailing whitespace in code blocks |
||
| Line 13: | Line 13: | ||
<syntaxHighlight lang="nix">{ # /etc/nixos/configuration.nix | <syntaxHighlight lang="nix">{ # /etc/nixos/configuration.nix | ||
environment.systemPackages = [ | environment.systemPackages = [ | ||
(pkgs.vim_configurable.customize { | (pkgs.vim_configurable.customize { | ||
name = "vim"; | name = "vim"; | ||
vimrcConfig.vam.pluginDictionaries = [ | vimrcConfig.vam.pluginDictionaries = [ | ||
# vim-nix handles indentation better but does not perform sanity | # vim-nix handles indentation better but does not perform sanity | ||
| Line 30: | Line 30: | ||
<syntaxHighlight lang="nix">{ # /etc/nixos/configuration.nix | <syntaxHighlight lang="nix">{ # /etc/nixos/configuration.nix | ||
environment.systemPackages = [ | environment.systemPackages = [ | ||
(pkgs.vim_configurable.customize { | (pkgs.vim_configurable.customize { | ||
name = "vim"; | name = "vim"; | ||
vimrcConfig.packages.myplugins = with pkgs.vimPlugins; { | vimrcConfig.packages.myplugins = with pkgs.vimPlugins; { | ||
start = [ vim-nix ]; # load plugin on startup | start = [ vim-nix ]; # load plugin on startup | ||
}; | }; | ||
}) | }) | ||
]; | ]; | ||