vimPlugins.nvim-tree-sitter: fix updater formatting
This commit is contained in:
@@ -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 += """,
|
||||
}:
|
||||
|
||||
{
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user