4 of 6 standards met
Hacking with TinyGo lacks Auto-Completion support for machine package I hacked a little with Tiny Go and got rid of a bunch of linter warnings using the tinygo.nvim plugin to set the target. But the keystrokes for Go Definition won't work, the for completion neither works. Note* I skipped the and configuration section as it's not a bug, behaves pretty well. The issue* is related to how TinyGo and the machine package behave! Vim version (first three lines from ): NVIM v0.10.0 Go version (): go version go1.22.3 linux/amd64 tinygo version 0.31.2 linux/amd64 (using go version go1.22.3 and LLVM version 17.0.6) Go environment go env Output: { "AR": "ar", "CC": "gcc", "CGO_CFLAGS": "-O2 -g", "CGO_CPPFLAGS": "", "CGO_CXXFLAGS": "-O2 -g", "CGO_ENABLED": "0", "CGO_FFLAGS": "-O2 -g", "CGO_LDFLAGS": "-O2 -g", "CXX": "g++", "GCCGO": "gccgo", "GO111MODULE": "", "GOAMD64": "v1", "GOARCH": "amd64", "GOBIN": "", "GOCACHE": "/home/mafe/.cache/go-build", "GOENV": "/home/mafe/.config/go/env", "GOEXE": "", "GOEXPERIMENT": "", "GOFLAGS": "", "GOGCCFLAGS": "-fPIC -m64 -fno-caret-diagnostics -Qunused-arguments -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build4078892123=/tmp/go-build -gno-record-gcc-switches", "GOHOSTARCH": "amd64", "GOHOSTOS": "linux", "GOINSECURE": "", "GOMOD": "/dev/null", "GOMODCACHE": "/home/mafe/go/pkg/mod", "GONOPROXY": "", "GONOSUMDB": "", "GOOS": "linux", "GOPATH": "/home/mafe/go", "GOPRIVATE": "", "GOPROXY": "https://proxy.golang.org,direct", "GOROOT": "/nix/store/vz8d6wmfcf38l3h3vymwqr6c5zxp5jmp-go-1.22.3/share/go", "GOSUMDB": "sum.golang.org", "GOTMPDIR": "", "GOTOOLCHAIN": "auto", "GOTOOLDIR": "/nix/store/vz8d6wmfcf38l3h3vymwqr6c5zxp5jmp-go-1.22.3/share/go/pkg/tool/linux_amd64", "GOVCS": "", "GOVERSION": "go1.22.3", "GOWORK": "", "PKG_CONFIG": "pkg-config" } gopls version gopls version Output: golang.org/x/tools/gopls v0.15.3 I'd love some hints on how to tackle this and would be happy to try to solve it on my own. :)
Repository: fatih/vim-go. Description: Go development plugin for Vim Stars: 16238, Forks: 1431. Primary language: Vim Script. Languages: Vim Script (86.4%), Go (8.5%), Vim Snippet (2.6%), Shell (1.8%), Python (0.5%). Homepage: https://www.patreon.com/bhcleek Topics: go, golang, gopls, hacktoberfest, lps, vim, vim-go, vim-plugins, viml. Latest release: v1.29 (10mo ago). Open PRs: 16, open issues: 28. Last activity: 1w ago. Community health: 71%. Top contributors: bhcleek, fatih, arp242, mattn, delphinus, guns, nhooyr, k33nice, nowk, cespare and others.
Vim Script
Last 12 weeks · 19 commits
What did you do? (required: The issue will be closed when not provided) I mapped and to and key sequences, respectively: based on the following vim-go docs: https://github.com/fatih/vim-go/blob/24528ad835451465ed605638d6416051cac53057/doc/vim-go.txt#L1024-L1030 In my code, I then pressed and on some identifiers. What did you expect to happen? See a list of callees/callers of the given identifier. What happened instead? Nothing. Notably, https://github.com/fatih/vim-go/blob/24528ad835451465ed605638d6416051cac53057/ftplugin/go/mappings.vim doesn't seem to have any entries for nor !! I tried searching this repo on github for , and the only entry that shows up is in . vim-go version: I don't see nor in mappings.vim in the current tip: https://github.com/fatih/vim-go/blob/24528ad835451465ed605638d6416051cac53057/ftplugin/go/mappings.vim The last release before that I see on github is 1.29. I think that's the version I do have installed (not 100% sure as I'm using vim-go through Nix - the path says 2025-11-11, so it seems it'd be 1.29).