blob: 9d2ab4ef40c64a0e206ff369bf0e94ba3327cda5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
" Go deoplete
let g:deoplete#sources#go#gocode_binary = '$GOPATH/bin/gocode'
" GoRun Split Reuse
function! ReuseVimGoTerm(cmd) abort
for w in nvim_list_wins()
if "goterm" == nvim_buf_get_option(nvim_win_get_buf(w), 'filetype')
call nvim_win_close(w, v:true)
break
endif
endfor
execute a:cmd
endfunction
let g:go_term_enabled = 1
let g:go_term_mode = "silent keepalt rightbelow 35 vsplit"
let g:go_def_reuse_buffer = 1
autocmd FileType go nmap <leader>r :call ReuseVimGoTerm('GoRun')<Return>
|