mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
Merge pull request #157205 from enderger/tup/vim-syntax
This commit is contained in:
commit
8fcb7ef1af
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user