add himalaya Vim plugin (#124512)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
toastal 2021-06-01 15:59:57 +00:00 committed by GitHub
parent 3bb27749ab
commit 01e24bd0dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,6 +21,7 @@
, direnv
, fzf
, gnome
, himalaya
, khard
, languagetool
, llvmPackages
@ -286,6 +287,21 @@ self: super: {
};
});
himalaya-vim = buildVimPluginFrom2Nix {
pname = "himalaya-vim";
inherit (himalaya) src version;
configurePhase = "cd vim/";
dependencies = with self; [ himalaya ];
preFixup = ''
substituteInPlace $out/share/vim-plugins/himalaya-vim/plugin/himalaya.vim \
--replace 'if !executable("himalaya")' 'if v:false'
'';
postFixup = ''
mkdir -p $out/bin
ln -s ${himalaya}/bin/himalaya $out/bin/himalaya
'';
};
LanguageClient-neovim =
let
version = "0.1.161";