15 questions
0
votes
1
answer
69
views
don't work command :GoDef in vim-go project
when i move cursor on function or variable in project and run :GoDef command nothing happen.
project have 37000 lines code.
this problem dos not exist in every project directory!
move cursor on dto....
0
votes
2
answers
2k
views
Go: vim autocomplete <ENTER> command don't works
autocomplete in vim doesn't work when I hit ENTER and the cursor go to the next line.
this is my .vimrc configuration: https://github.com/marcosvidolin/dotfiles/blob/master/.vimrc
Popup example:
...
2
votes
0
answers
690
views
vim-go: permission denied installing 'gopls'
I'm trying to setup the vim-go in a work environment but I don't have permission to install the gopls using:
GoInstallBinaris
or
go get golang.org/x/tools/gopls@latest
I'm getting this: /path/go/bin/...
3
votes
0
answers
2k
views
:GoInstallBinaries is ok but vim-go is not working
I am installing fatih/vim-go plugin. After install (I am using Vim8 packages) I run :GoInstallBinaries. In the image installation is complete.
So, ... why if I run command such GoRun the editor ...
1
vote
2
answers
2k
views
vim-go with coc.nvim: how to rename a package?
I have a file work.go opened in vim-go. It's in package oldpackagename.
I want to refactor and rename it to newpackagename. Is there some tooling for that? The reason is, the initial assumptions for ...
2
votes
0
answers
2k
views
vim-go with golangci-lint and revive (replacing deprecated go-lint): Confused about correct config
I am having a really hard time getting vim-go to play well with golanci-lint.
golint, which was a default linter for go, has been deprecated. Most users now suggest to use revive.
While the default ...
1
vote
0
answers
265
views
vim-go use environment file for :GoRun
When I use an IDE like Goland I'm able to set an environment file for the process when I run the program. I've done the following to get a similar result. I added the following to the init.vim.
" ...
0
votes
0
answers
101
views
Not able to see first two characters in the file
Vim details:
$ vim --version
VIM - Vi IMproved 8.1 (2018 May 18, compiled Jun 5 2020 21:30:37)
macOS version
Here you can see that package v1 word in the starting of the file is not visible properly....