mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +03:00
Merge pull request #32738 from LambdaP/neovim-viAlias-option
neovim: add viAlias argument
This commit is contained in:
commit
8dc107be5b
@ -9,6 +9,7 @@
|
||||
|
||||
, withPyGUI ? false
|
||||
, vimAlias ? false
|
||||
, viAlias ? false
|
||||
, configure ? null
|
||||
}:
|
||||
|
||||
@ -174,7 +175,9 @@ let
|
||||
};
|
||||
};
|
||||
|
||||
in if (vimAlias == false && configure == null) then neovim else stdenv.mkDerivation {
|
||||
in if (vimAlias == false && viAlias == false && configure == null)
|
||||
then neovim
|
||||
else stdenv.mkDerivation {
|
||||
name = "neovim-${neovim.version}-configured";
|
||||
inherit (neovim) version meta;
|
||||
|
||||
@ -187,6 +190,8 @@ in if (vimAlias == false && configure == null) then neovim else stdenv.mkDerivat
|
||||
done
|
||||
'' + optionalString vimAlias ''
|
||||
ln -s $out/bin/nvim $out/bin/vim
|
||||
'' + optionalString viAlias ''
|
||||
ln -s $out/bin/nvim $out/bin/vi
|
||||
'' + optionalString (configure != null) ''
|
||||
wrapProgram $out/bin/nvim --add-flags "-u ${vimUtils.vimrcFile configure}"
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user