vimPlugins.tup: init at 0.7.11

This commit is contained in:
Hutzdog 2022-01-28 14:44:54 -08:00 committed by Danielle Hutzley
parent 1e8d75b093
commit 11f054c74a

View file

@ -34,6 +34,7 @@
, statix
, stylish-haskell
, tabnine
, tup
, vim
, which
, xkb-switch
@ -643,6 +644,24 @@ self: super: {
dependencies = with self; [ telescope-nvim ];
});
tup =
let
# Based on the comment at the top of https://github.com/gittup/tup/blob/master/contrib/syntax/tup.vim
ftdetect = builtins.toFile "tup.vim" ''
au BufNewFile,BufRead Tupfile, *.tup set filetype=tup
'';
in
buildVimPluginFrom2Nix {
inherit (tup) pname version src;
preInstall = ''
mkdir -p vim-plugin/syntax vim-plugin/ftdetect
cp contrib/syntax/tup.vim vim-plugin/syntax/tup.vim
cp "${ftdetect}" vim-plugin/ftdetect/tup.vim
cd vim-plugin
'';
meta.maintainers = with lib.maintainers; [enderger];
};
unicode-vim =
let
unicode-data = fetchurl {