diff --git a/pkgs/misc/vim-plugins/overrides.nix b/pkgs/misc/vim-plugins/overrides.nix index b376b7fe1aef..af5fcb12d956 100644 --- a/pkgs/misc/vim-plugins/overrides.nix +++ b/pkgs/misc/vim-plugins/overrides.nix @@ -34,6 +34,7 @@ , statix , stylish-haskell , tabnine +, tup , vim , which , xkb-switch @@ -687,6 +688,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 {