Skip to content

Commit d3639d6

Browse files
committed
feat(sublime): Adding the debugger conf for golang
Signed-off-by: Vincent Boutour <[email protected]>
1 parent 02d16c6 commit d3639d6

File tree

3 files changed

+10
-12
lines changed

3 files changed

+10
-12
lines changed

installations/golang

+3-6
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,7 @@ install() {
4545
packages_install graphviz
4646

4747
if command -v go >/dev/null 2>&1; then
48-
if [[ $(normalized_arch "amd64" "armv6l" "arm64") == "amd64" ]]; then
49-
go install "github.com/go-delve/delve/cmd/dlv@latest"
50-
fi
51-
48+
go install "github.com/go-delve/delve/cmd/dlv@latest"
5249
go install "github.com/derailed/popeye@latest"
5350
go install "go.uber.org/mock/mockgen@latest"
5451
go install "github.com/golangci/golangci-lint/cmd/golangci-lint@latest"
@@ -57,11 +54,11 @@ install() {
5754
go install "golang.org/x/tools/cmd/goimports@latest"
5855
go install "golang.org/x/tools/go/analysis/passes/fieldalignment/cmd/fieldalignment@master"
5956
go install "mvdan.cc/gofumpt@latest"
57+
58+
golangci-lint completion bash >"${SCRIPT_DIR}/../sources/golangci-lint-completion"
6059
fi
6160

6261
# renovate: datasource=github-releases depName=golang-migrate/migrate
6362
local GOLANG_MIGRATE_VERSION="v4.16.2"
6463
archive_to_binary "https://github.com/golang-migrate/migrate/releases/download/${GOLANG_MIGRATE_VERSION}/migrate.$(normalized_os)-$(normalized_arch "amd64" "armv7" "arm64").tar.gz" "migrate"
65-
66-
golangci-lint completion bash >"${SCRIPT_DIR}/../sources/golangci-lint-completion"
6764
}

sublime/text/settings/Package Control.sublime-settings

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"in_process_packages": [
44
],
55
"installed_packages": [
6+
"Debugger",
67
"EditorConfig",
78
"LSP",
89
"Package Control",

sublime/text/snippets/vscode-debug.xml

+6-6
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"name": "Launch Main",
55
"type": "go",
66
"request": "launch",
7-
"mode": "auto",
8-
"cwd": "${workspaceFolder}",
9-
"program": "${workspaceFolder}/cmd/",
10-
"envFile": "${workspaceFolder}/.env"
7+
"mode": "debug",
8+
"cwd": "${folder}",
9+
"program": "${folder}/cmd/",
10+
"envFile": "${folder}/.env"
1111
}
1212
]]></content>
13-
<tabTrigger>vsd</tabTrigger>
13+
<tabTrigger>dlm</tabTrigger>
1414
<scope>source.json</scope>
15-
<description>VSCode Launch Debug</description>
15+
<description>Debugger Launch Main</description>
1616
</snippet>

0 commit comments

Comments
 (0)