vimPlugins.nvim-tree-sitter: fix updater formatting

This commit is contained in:
Austin Horstman
2025-04-14 11:15:54 -05:00
parent 9e417dc3a0
commit 09c979e0f0
@@ -62,11 +62,18 @@ def update_grammars(nvim_treesitter_dir: str):
generated_file = """# generated by pkgs/applications/editors/vim/plugins/utils/nvim-treesitter/update.py
{ buildGrammar, """
{
buildGrammar,
"""
generated_file += subprocess.check_output(["nurl", "-Ls", ", "], text=True)
# Get the output and format it properly
nurl_output = subprocess.check_output(["nurl", "-Ls", ","], text=True).strip()
# Add proper indentation (2 spaces) to the comma-separated list
indented_output = nurl_output.replace(",", ",\n ")
generated_file += indented_output
generated_file += """ }:
generated_file += """,
}:
{
"""