Update go.vim and createrepo script
This commit is contained in:
parent
f8f56336ab
commit
3aeeb45573
|
@ -55,5 +55,5 @@ Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) do |http|
|
|||
end
|
||||
|
||||
repo = JSON.parse(resp.body)
|
||||
puts repo['ssh_url']
|
||||
puts "git remote add origin #{repo['ssh_url']}"
|
||||
end
|
||||
|
|
|
@ -30,6 +30,7 @@ nnoremap <silent> ds :GoDebugStep<cr>
|
|||
" Vim-Go configuration
|
||||
let g:go_gopls_enabled = 0
|
||||
let g:go_fmt_autosave = 1
|
||||
let g:go_fmt_command = "goimports"
|
||||
let g:go_imports_autosave = 0
|
||||
let g:go_textobj_enabled = 0
|
||||
let g:go_auto_sameids = 0
|
||||
|
@ -59,6 +60,7 @@ iabbrev fttt <ESC>ccfunc TestSomething(t *testing.T) {<cr>}<esc>k9l
|
|||
iabbrev ttt t *testing.T
|
||||
iabbrev errP <esc>ccif err != nil {<cr>panic(err)<cr>}
|
||||
iabbrev errl <esc>ccif err != nil {<cr>log.Println(err)<cr>}
|
||||
iabbrev errf <esc>ccif err != nil {<cr>log.Fatal(err)<cr>}
|
||||
iabbrev errp <esc>ccif err != nil {<cr>fmt.Println(err)<cr>}
|
||||
iabbrev errr <esc>ccif err != nil {<cr>return err<cr>}
|
||||
iabbrev defr <esc>ccdefer func() {<cr><cr>}()<esc>ki
|
||||
|
|
Loading…
Reference in New Issue