vimrc(go): add term,fmt,fillstruct_mode settings
This commit is contained in:
parent
9233819b6b
commit
267acdf057
@ -645,7 +645,7 @@ let g:go_list_type = 'quickfix'
|
|||||||
" let g:go_version_warning = 0
|
" let g:go_version_warning = 0
|
||||||
let g:go_fmt_fail_silently = 0
|
let g:go_fmt_fail_silently = 0
|
||||||
" auto formatting and importing
|
" auto formatting and importing
|
||||||
let g:go_fmt_command='gopls'
|
let g:go_fmt_command = 'gopls'
|
||||||
let g:go_fmt_autosave = 1
|
let g:go_fmt_autosave = 1
|
||||||
" go install mvdan.cc/gofumpt@latest
|
" go install mvdan.cc/gofumpt@latest
|
||||||
let g:go_gopls_gofumpt = 1
|
let g:go_gopls_gofumpt = 1
|
||||||
@ -653,6 +653,10 @@ let g:go_gopls_gofumpt = 1
|
|||||||
let g:go_gopls_options = ['-remote=unix;/tmp/.gopls-daemon.sock']
|
let g:go_gopls_options = ['-remote=unix;/tmp/.gopls-daemon.sock']
|
||||||
" let lsp handle connecting to gopls
|
" let lsp handle connecting to gopls
|
||||||
let g:go_gopls_enabled = 1
|
let g:go_gopls_enabled = 1
|
||||||
|
" let g:go_doc_popup_window = 0
|
||||||
|
let g:go_fillstruct_mode = 'gopls'
|
||||||
|
let g:go_term_reuse = 1
|
||||||
|
let g:go_term_enabled = 1
|
||||||
|
|
||||||
|
|
||||||
augroup vimgo
|
augroup vimgo
|
||||||
|
Loading…
Reference in New Issue
Block a user