Skip to content

Instantly share code, notes, and snippets.

@luqmaan
Created December 4, 2013 17:50
Show Gist options
  • Save luqmaan/7792211 to your computer and use it in GitHub Desktop.
Save luqmaan/7792211 to your computer and use it in GitHub Desktop.
My GoSublime settings
{
// whether or not pkg files should be automatically saved when necessary (e.g. when running 9o `replay` or `go test` commands)
"autosave": false,
// Whether or not gscomplete(gocode) is enabled
"gscomplete_enabled": true,
// Whether or not gsfmt is enabled
"fmt_enabled": true,
// whether or not to indent with tabs (alignment is always done using spaces)
"fmt_tab_indent": false,
// the assumed width of the tab character (or number of spaces to indent with)
"fmt_tab_width": 4,
// Whether or not gslint is enabled
"gslint_enabled": true,
// filter the kinds of lint checks that are done. supported kinds:
//
// gs.syntax - parser/syntax errors - it makes no sense to filter this as it will simply
// manifest itself in other checks (which will likely not be done if there are syntax errors)
// gs.flag.parse - check for possibly missing calls to flag.Parse()
// gs.types - do a typecheck using the go/types package(like the old gotype)
// disabled by default until it's ready(copied from tip)
"lint_filter": [
"gs.flag.parse",
"gs.types",
"gs.syntax"
],
// Whether or not comp lint is enabled (this might conflict with gslint)
"comp_lint_enabled": false,
// how long to wait after the last keystroke before the gslint_cmd command is run (in milliseconds)
"gslint_timeout": 100,
// Not Implemented
// Whether or not gslint is enabled
"lint_enabled": true,
// 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": true,
// whether or not builtin types and functions should be shown in the auto-completion list
"autocomplete_builtins": true,
// whether or not to show an expanded(closure) version of func types in the auto-completion list
// e.g. `type Fun func(i int)`
// will result in two entries `Fun` and `Fun {}`
// expanding to `Fun` and `func(i) {...}` respectively
"autocomplete_closures": true,
// you may set this to a regexp which will be used to filter entries in the auto-completion list
// e.g. "autocomplete_filter_name": "^autogenerated_" will prevent any type or function
// whose name begins with "autogenerated_" from appearing in the auto-completion list
"autocomplete_filter_name": "",
// 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,
// whether or not to show function call tip in the status bar as you type
// the same can be achieved ctrl+dot,ctrl+space using an output panel
"autocomplete_live_hint": true,
// whether or not to use named imports when the basename of the import path doesn't match the pkg name
// e.g. gosubli.me/go-foo would be imported as:
// import (
// foo "gosubli.me/go-foo"
// )
"use_named_imports": true,
// whether or not MarGo may automatically run `go install` for packages that are missing
// when you `import`, or `autocomplete` them
"autoinst": false,
// commands to run on (post) save - list of objects of the form {"cmd": "...", "args": {...}}
// Any TextCommand may be run. Supported GS commands include:
// gs_comp_lint - compile the pkg and report any errors
"on_save": []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment