diff --git a/script/createrepo b/script/createrepo index d13020e..1619a8c 100755 --- a/script/createrepo +++ b/script/createrepo @@ -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 diff --git a/vim/after/ftplugin/go.vim b/vim/after/ftplugin/go.vim index 26fc85d..6b222d3 100644 --- a/vim/after/ftplugin/go.vim +++ b/vim/after/ftplugin/go.vim @@ -30,6 +30,7 @@ nnoremap ds :GoDebugStep " 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 ccfunc TestSomething(t *testing.T) {}k9l iabbrev ttt t *testing.T iabbrev errP ccif err != nil {panic(err)} iabbrev errl ccif err != nil {log.Println(err)} +iabbrev errf ccif err != nil {log.Fatal(err)} iabbrev errp ccif err != nil {fmt.Println(err)} iabbrev errr ccif err != nil {return err} iabbrev defr ccdefer func() {}()ki