forked from DisposaBoy/GoSublime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GoSublime.sublime-settings
46 lines (39 loc) · 1.82 KB
/
GoSublime.sublime-settings
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
// Whether or not gscomplete(gocode) is enabled
"gscomplete_enabled": true,
// the command that shall be called for gocode, this can be the command name
// or absolute path to a binary e.g. `/go/bin/gocode`
"gocode_cmd": "gocode",
// the command that shall be called for gofmt, this can be the command name
// or absolute path to a binary e.g. `/go/bin/gofmt`
"gofmt_cmd": "gofmt",
// Whether or not gslint is enabled
"gslint_enabled": true,
// the command that shall be called for gslint
// the command shall output errors to stderr in the format: PATH:LINE_NUMBER:ERROR_OFFSET:ERROR_MESSAGE
// matching the regexp (.+):(\d+):(\d+):(.+) where ERROR_OFFSET is optional.
// e.g. given:
// fmt.Println(x)
// the command shall output:
// main.go:10:14: undeclared name: x
// compatible commands include: govet, gotype
// the following magic values are replaced in the command you specify
//
// $pkg the package name of the file in which the command was invoked
// $files the list of project files
// $real_path the origin path to file in which the command was invoked.
// $path the path to the file in which the command was invoked.
// This defers from $real_path in that it contains the contents
// of the possibly unsaved view.
// Its basename is of the form: .GoSublime~tmp~[VIEW_ID:\d+]~[basename($real_path)]~
//
//
// "gslint_cmd": ["govet", "$files"],
"gslint_cmd": ["gotype", "-p", "$pkg", "$files"],
// how long to wait after the last keystroke before the gslint_cmd command is run (in milliseconds)
"gslint_timeout": 500,
// whether or not to include snippets in the auto-completion list
"autocomplete_snippets": true,
// whether or not to include Test*, Benchmark* and Example* functions in the auto-completion list
"autocomplete_tests": false
}