Update go.vim and createrepo script

This commit is contained in:
Rob Watson 2021-09-05 23:32:03 +02:00
parent f8f56336ab
commit 3aeeb45573
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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