You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This doesn't jump to the correct existing buffer if it's in a different tab, but I almost never use tabs.
What did you do? (required: The issue will be closed when not provided)
Set go_def_reuse_buffers = 1, then use :GoDef on one window when there was another split window with the file containing the definition it should jump to.
What did you expect to happen?
Cursor would jump to the other window to the line containing the definition.
What happened instead?
Cursor stayed in the same window (the one without the definition), but jumped to the line where the definition is in the other file.
Configuration (MUST fill this out):
vim-go version:
v1.23
vimrc you used to reproduce:
vimrc
set rtp^=~/.vim rtp+=~/.vim/after
call plug#begin('~/.vim/plugged')
Plug 'fatih/vim-go', {'tag': 'v1.23'}
call plug#end()
let g:go_def_reuse_buffer = 1
Vim version (first three lines from :version):
NVIM v0.4.3
Build type: Release
LuaJIT 2.0.5
I also reproduced on macOS vim version:
VIM - Vi IMproved 8.1 (2018 May 18, compiled Oct 30 2019 11:57:56)
macOS version
Included patches: 1-2234
My current solution to this has been to replace this line in
autoload/go/def.vim
with this:call win_gotoid(win_getid(bufwinnr(filename)))
This doesn't jump to the correct existing buffer if it's in a different tab, but I almost never use tabs.
What did you do? (required: The issue will be closed when not provided)
Set
go_def_reuse_buffers = 1
, then use:GoDef
on one window when there was another split window with the file containing the definition it should jump to.What did you expect to happen?
Cursor would jump to the other window to the line containing the definition.
What happened instead?
Cursor stayed in the same window (the one without the definition), but jumped to the line where the definition is in the other file.
Configuration (MUST fill this out):
vim-go version:
v1.23
vimrc
you used to reproduce:vimrc
Vim version (first three lines from
:version
):NVIM v0.4.3
Build type: Release
LuaJIT 2.0.5
I also reproduced on macOS vim version:
VIM - Vi IMproved 8.1 (2018 May 18, compiled Oct 30 2019 11:57:56)
macOS version
Included patches: 1-2234
Go version (
go version
):go version go1.13.4 darwin/amd64
Go environment
go env
Output:gopls version
gopls version
Output:vim-go configuration:
vim-go configuration
filetype detection configuration:
filetype detection
The text was updated successfully, but these errors were encountered: