From ac556d5982b76e4f053f515580f8345f745b20b1 Mon Sep 17 00:00:00 2001 From: Vincent Boutour Date: Thu, 21 Nov 2024 23:05:40 +0100 Subject: [PATCH] feat: Remove prettier plugin because dont work Signed-off-by: Vincent Boutour --- sublime/init.sh | 2 +- sublime/plugins/Formatter/Formatter.sublime-settings | 1 - sublime/plugins/Formatter/format.py | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/sublime/init.sh b/sublime/init.sh index e21a4634..41eaf8f7 100755 --- a/sublime/init.sh +++ b/sublime/init.sh @@ -87,7 +87,7 @@ main() { fi if command -v npm >/dev/null 2>&1; then - npm install --ignore-scripts --global "prettier" "prettier-plugin-go-template" "eslint" "typescript-language-server" "typescript" "yaml-language-server" + npm install --ignore-scripts --global "prettier" "eslint" "typescript-language-server" "typescript" "yaml-language-server" fi if command -v pip >/dev/null 2>&1; then diff --git a/sublime/plugins/Formatter/Formatter.sublime-settings b/sublime/plugins/Formatter/Formatter.sublime-settings index aa37f584..6c4d8e23 100644 --- a/sublime/plugins/Formatter/Formatter.sublime-settings +++ b/sublime/plugins/Formatter/Formatter.sublime-settings @@ -1,6 +1,5 @@ { "selectors": { - "text.html.go": [["prettier", "--no-color", "--plugin", "prettier-plugin-go-template", "--stdin-filepath", "file.tmpl"]], "source.go": [["goimports"], ["gofumpt"]], "source.js": [["prettier", "--no-color", "--stdin-filepath", "file.js"]], "source.json": [["jq"]], diff --git a/sublime/plugins/Formatter/format.py b/sublime/plugins/Formatter/format.py index 3900343f..c2691674 100644 --- a/sublime/plugins/Formatter/format.py +++ b/sublime/plugins/Formatter/format.py @@ -24,7 +24,6 @@ def format(view, region, working_dir, commands): stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, - cwd=working_dir, ) timeout = threading.Timer(interval=5, function=process.terminate)