summarylogtreecommitdiffstats
path: root/patch.py
diff options
context:
space:
mode:
authorSainnhe Park2023-09-19 16:18:53 +0800
committerSainnhe Park2023-09-19 16:18:53 +0800
commit826b618492480f8ee0697032797538d4799ccccd (patch)
treef47cc3b28a8a69027aa1edd153c9200bc58c6648 /patch.py
parentf7d68ef2bb5ed16f6452ac322c59217ca37ce477 (diff)
downloadaur-neovim-coc-go-git.tar.gz
Use python to patch
Diffstat (limited to 'patch.py')
-rwxr-xr-xpatch.py13
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')