Add another go definition
This commit is contained in:
parent
923e0a608b
commit
35eb03c3d3
@ -125,8 +125,9 @@ endif
|
||||
|
||||
|
||||
" Golang
|
||||
let g:formatdef_gofmt = '"gofmt"'
|
||||
let g:formatdef_gofmt_1 = '"gofmt -tabs=".(&expandtab ? "false" : "true")." -tabwidth=".&shiftwidth'
|
||||
let g:formatdef_gofmt_2 = '"gofmt"'
|
||||
if !exists('g:formatters_go')
|
||||
let g:formatters_go = ['gofmt']
|
||||
let g:formatters_go = ['gofmt_1', 'gofmt_2']
|
||||
endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user