Closed sportshead closed 2 months ago
Uses treesitter in order to find a Go import-spec, then opens https://pkg.go.dev/ for the package.
import-spec
e.g.:
import "fmt" // https://pkg.go.dev/fmt import ( "github.com/joho/godotenv" // https://pkg.go.dev/github.com/joho/godotenv git "github.com/jesseduffield/lazygit" // https://pkg.go.dev/github.com/jesseduffield/lazygit )
Note the last example: using gx while focused anywhere from the git alias to the end of the path string opens the correct URL, since the handler searches for the parent import-spec statement.
gx
git
Uses treesitter in order to find a Go
import-spec
, then opens https://pkg.go.dev/ for the package.e.g.:
Note the last example: using
gx
while focused anywhere from thegit
alias to the end of the path string opens the correct URL, since the handler searches for the parentimport-spec
statement.