nixos - Build vim with a predefined list of plugins in Nix -


so far have been able build vim custom flags using vim_configurable nix package , setting proper values in ~/.nixpkgs/config.nix. instance, building vim lua support (which isn't default when installing vim nix package), simple working config.vim set:

pkgs : {   vim = {     lua = true;   }; } 

the main problem facing how set vim different plugins different nix profiles. what's proper way achieve this? right manually installing corresponding nix vim plugins each profile , modifying ~/.vimrc after each profile switch, not ideal. seems possible when using nixos, haven't been able make work in nix.

any hints?

the nixpkgs config global, , that's reason don't such package config vim does.

for sure can packageoverrides vim1 = ...; vim2 = ...; without using vim config on top-level, rather per-package override.

not sure clear enough. in other words, use vim_configurable.override passing flags there directly, instead of using nixpkgs global config.


Popular posts from this blog