Last active
June 12, 2016 08:18
-
-
Save seiflotfy/23da1509aebd126170f7 to your computer and use it in GitHub Desktop.
GoSublime
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// you may set specific environment variables here | |
// e.g "env": { "PATH": "$HOME/go/bin:$PATH" } | |
// in values, $PATH and ${PATH} are replaced with | |
// the corresponding environment(PATH) variable, if it exists. | |
//"env": {"GOPATH": "$HOME/Projects/go:$HOME/Projects/go/src/github.com/originalilluminaughty/watchly/local/", "PATH": "$GOPATH/bin:$PATH" }, | |
"env": {"GOPATH": "$HOME/Projects/go/:$HOME/Projects/go/src/github.com/skizzehq/skizze/:$HOME/Projects/go/src/github.com/skizzehq/skizze/vendor", "PATH": "$GOPATH/bin:$PATH" }, | |
"fmt_cmd": ["goimports"], | |
// enable comp-lint, this will effectively disable the live linter | |
"comp_lint_enabled": true, | |
// list of commands to run | |
"comp_lint_commands": [ | |
// run `golint` on all files in the package | |
// "shell":true is required in order to run the command through your shell (to expand `*.go`) | |
// also see: the documentation for the `shell` setting in the default settings file ctrl+dot,ctrl+4 | |
{"cmd": ["golint *.go"], "shell": true}, | |
// run go vet on the package | |
{"cmd": ["go", "vet"]}, | |
{"cmd": ["gometalinter", "-D", "gocyclo", "./..."]}, | |
// run `go install` on the package. GOBIN is set, | |
// so `main` packages shouldn't result in the installation of a binary | |
{"cmd": ["gb", "build"]} | |
], | |
"on_save": [ | |
// run comp-lint when you save, | |
// naturally, you can also bind this command `gs_comp_lint` | |
// to a key binding if you want | |
{"cmd": "gs_comp_lint"}, | |
{"cmd": "gs9o_open", "args": { | |
"run": ["sh", | |
//"gb build . && gb test && gometalinter -D gocyclo ./..."], | |
"gometalinter ./... -D gocyclo -D gotype -D interfacer -D dupl -D errcheck --deadline=60s"], | |
"focus_view": false | |
}} | |
], | |
/* | |
"autocomplete_closures": true, | |
"complete_builtins": true, | |
"autocomplete_snippets": true, | |
// whether or not to include Test*, Benchmark* and Example* functions in the auto-completion list | |
"autocomplete_tests": true, | |
// whether or not builtin types and functions should be shown in the auto-completion list | |
"autocomplete_builtins": true, | |
// whether or not autocomplete should suggest possible imports when autocomplete fails to | |
// find a match. | |
// note: this feature only comes into effect when autocomplete was triggered after a dot, e.g. `fmt.|` | |
"autocomplete_suggest_imports": true, | |
*/ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment