3
0
Fork 0
forked from mirrors/nixpkgs

vimPlugins.nvim-treesitter: clean up update script

This commit is contained in:
figsoda 2023-01-03 14:52:00 -05:00
parent d376da366d
commit 2d0d7db7f0
2 changed files with 3 additions and 4 deletions

View file

@ -1,6 +1,6 @@
# generated by pkgs/applications/editors/vim/plugins/nvim-treesitter/update.py
{ buildGrammar, fetchFromBitbucket, fetchFromGitHub, fetchFromGitLab, fetchFromGitea, fetchFromGitiles, fetchFromRepoOrCz, fetchFromSourcehut, fetchgit }:
{ buildGrammar, fetchFromBitbucket, fetchFromGitHub, fetchFromGitLab, fetchFromGitea, fetchFromGitiles, fetchFromRepoOrCz, fetchFromSourcehut, fetchgit, fetchhg, fetchsvn }:
{
ada = buildGrammar {

View file

@ -60,10 +60,9 @@ def generate_grammar(item):
generated_file = """# generated by pkgs/applications/editors/vim/plugins/nvim-treesitter/update.py
{ buildGrammar"""
{ buildGrammar, """
for fetcher in subprocess.check_output(["nurl", "-L"], text=True).splitlines():
generated_file += f", {fetcher}"
generated_file += subprocess.check_output(["nurl", "-Ls", ", "], text=True)
generated_file += """ }: