Closed greg-bell closed 4 months ago
Turned out to be asdf's extremely slow performance (even though it's not slow on the command line). See https://github.com/asdf-vm/asdf/issues/290 for details. Workaround is to add this to .bashrc:
function unshim() {
PATH=$(asdf where golang)/go/bin:$PATH
}
I've had related problems before and asdf's direnv plugin works too.
startuplog had weird output, so finding this was mostly an educated guess and lots of echomsg statements (with reltime).
What did you do? (required: The issue will be closed when not provided)
Ran
neovim main.go
What did you expect to happen?
Fast startup time.
What happened instead?
Startup time ~4 s.
Problem seems to be commands.vim?
Configuration (MUST fill this out):
vim-go version:
master/0e97556 but problem has existed on other versions.
vimrc
you used to reproduce:vimrc
```vim empty ```Vim version (first three lines from
:version
):NVIM v0.9.5 Build type: Release LuaJIT 2.1.1703358377
Go version (
go version
):go version go1.22.0 darwin/amd64
Go environment
go env
Output:gopls version
gopls version
Output:vim-go configuration:
vim-go configuration
filetype detection configuration:
filetype detection