Files & navigation · beta · Neovim 0.11+ · 289 commits
gopath.nvim
One key, and you are at the file the cursor is pointing at — however that reference happens to be written. gopath.nvim resolves symbols, require() paths and arbitrary file references under the cursor through a multi-phase pipeline, so a require("a.b"), a bare path, a :help tag and a stack-trace line all end in the same place: the right file, at the right line.
demos/gopath.tape in a clean Neovim — re-recorded weekly
what is shown when
- gP - open path:line:col under the cursor, right there
- g\ - the same, in a vertical split
- g? - the resolution chain, when a jump goes somewhere odd
Connections
Tap the picture to open it at full size.
Install
{
"WKDSteve/gopath.nvim",
opts = {},
} Beta stage — active development. This repository is past its first shape and in active use, but the surface is not frozen: breaking changes are still possible. Pin a commit or tag if you depend on it.
Documentation
Recent commits
- test sheets: lazy-profile adjusts for load only on a busy machine
- docs tests: a sheet keeps naming the task it came from once that is done
- test sheets: lazy-profile bounds a load-adjusted start time
- fix token: gP on the indent of a traceback line keeps the line
- fix api: resolve_line finds a path:line whose path holds a blank
- fix lua: the value pass sees a save of the same size within the same second
- test sheets: the lua_ls, filetree and lazy-profile sheets check what they claim
- fix lua: gF on a module key prefers the module's own table and definition, parsed once