Merge pull request #157205 from enderger/tup/vim-syntax

This commit is contained in:
Sandro 2022-02-02 14:44:41 +01:00 committed by GitHub
commit 8fcb7ef1af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {