Skip to content

Instantly share code, notes, and snippets.

@yanmhlv
Last active April 5, 2016 14:32
Show Gist options
  • Save yanmhlv/6221045 to your computer and use it in GitHub Desktop.
Save yanmhlv/6221045 to your computer and use it in GitHub Desktop.
sublime text 3 config
{
"fmt_cmd": [
"goimports"
],
"autocomplete_closures": true,
"complete_builtins": true,
"comp_lint_enabled": true,
"comp_lint_commands": [
{"cmd": ["golint *.go"], "shell": true},
{"cmd": ["go", "vet"]},
{"cmd": ["go", "install"]}
],
"on_save": [
{
"cmd": "gs9o_open",
"args": {
// "run": ["sh", "gofmt -w . && go vet && golint . && gometalinter --vendor --json ."],
"commands": ["gofmt -w . && go vet && golint ."],
"focus_view": false
}
},
{
"cmd": "gs9o_run_many",
"args": {
"commands": [
["clear"],
["gofmt -s -w ./ && go vet && golint ."],
]
}
}
]
}
{
"always_show_minimap_viewport": true,
"auto_indent": true,
"auto_match_enabled": true,
"binary_file_patterns":
[
"*.jpg",
"*.jpeg",
"*.png",
"*.gif",
"*.ttf",
"*.tga",
"*.dds",
"*.ico",
"*.eot",
"*.pdf",
"*.swf",
"*.jar",
"*.zip"
],
"bold_folder_labels": true,
"caret_style": "phase",
"color_scheme": "Packages/Color Scheme - Default/IDLE.tmTheme",
"default_encoding": "UTF-8",
"default_line_ending": "unix",
"draw_minimap_border": true,
"draw_white_space": "selection",
"ensure_newline_at_eof_on_save": true,
"fade_fold_buttons": false,
"file_exclude_patterns":
[
"*.pyc",
"*.pyo",
"*.exe",
"*.dll",
"*.obj",
"*.o",
"*.a",
"*.lib",
"*.so",
"*.dylib",
"*.ncb",
"*.sdf",
"*.suo",
"*.pdb",
"*.idb",
".DS_Store",
"*.class",
"*.psd",
"*.db"
],
"folder_exclude_patterns":
[
".svn",
".git",
".hg",
"CVS"
],
"font_face": "Source Code Pro",
"font_options":
[
],
"font_size": 10.7,
"gutter": true,
"highlight_line": true,
"highlight_modified_tabs": true,
"ignored_packages":
[
"Vintage"
],
"indent_guide_options":
[
"draw_normal",
"draw_active"
],
"index_exclude_patterns":
[
"*.log"
],
"index_workers": 4,
"line_padding_bottom": 1,
"line_padding_top": 1,
"match_brackets": true,
"match_brackets_content": true,
"menu_visible": false,
"overlay_scroll_bars": "enabled",
"preview_on_click": true,
"rulers":
[
80,
100,
120
],
"scroll_past_end": true,
"show_encoding": true,
"show_full_path": true,
"small_tabs": true,
"soda_classic_tabs": true,
"spell_check": false,
"tab_size": 4,
"theme": "Soda Light 3.sublime-theme",
"translate_tabs_to_spaces": true,
"trim_trailing_white_space_on_save": true,
"use_simple_full_screen": true,
"vintage_start_in_command_mode": true,
"word_wrap": false
}
@yanmhlv
Copy link
Author

yanmhlv commented Mar 27, 2016

go get -u golang.org/x/tools/cmd/...
go get -u github.com/golang/lint/golint

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment