diff options
author | Sainnhe Park | 2023-09-19 16:18:53 +0800 |
---|---|---|
committer | Sainnhe Park | 2023-09-19 16:18:53 +0800 |
commit | 826b618492480f8ee0697032797538d4799ccccd (patch) | |
tree | f47cc3b28a8a69027aa1edd153c9200bc58c6648 /patch.py | |
parent | f7d68ef2bb5ed16f6452ac322c59217ca37ce477 (diff) | |
download | aur-neovim-coc-go-git.tar.gz |
Use python to patch
Diffstat (limited to 'patch.py')
-rwxr-xr-x | patch.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/patch.py b/patch.py new file mode 100755 index 000000000000..80c612ea86f2 --- /dev/null +++ b/patch.py @@ -0,0 +1,13 @@ +#!/usr/bin/env python3 + +import sys +import json +import os + +file_path = sys.argv[1] + +with open(file_path, "r") as rfile: + data = json.load(rfile) +data["contributes"]["configuration"]["properties"]["go.goplsPath"]["default"] = "/usr/bin/gopls" +with open(file_path, "w") as wfile: + json.dump(data, wfile, indent='\t') |