NORMAL ~/wkd/p/gopath :set skin=modern utf-8

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.

status
beta — 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.
category
Files & navigation
neovim
0.11+
repo
github.com/WKDSteve/gopath.nvim
commits
289
help
:help gopath

demo

recorded with VHS from demos/gopath.tape in a clean Neovim — re-recorded weekly
what is shown when
  1. gP - open path:line:col under the cursor, right there
  2. g\ - the same, in a vertical split
  3. g? - the resolution chain, when a jump goes somewhere odd

install

{
  "WKDSteve/gopath.nvim",
  opts = {},
}

docs/

git log

  1. test sheets: lazy-profile adjusts for load only on a busy machine
  2. docs tests: a sheet keeps naming the task it came from once that is done
  3. test sheets: lazy-profile bounds a load-adjusted start time
  4. fix token: gP on the indent of a traceback line keeps the line
  5. fix api: resolve_line finds a path:line whose path holds a blank
  6. fix lua: the value pass sees a save of the same size within the same second
  7. test sheets: the lua_ls, filetree and lazy-profile sheets check what they claim
  8. fix lua: gF on a module key prefers the module's own table and definition, parsed once
  9. test sheets: lazy-profile measures a second start with the user's persisted index
  10. test sheets: gF on an image with the real images.nvim and chooser
  11. test sheets: gT reveals the resolved file in the real filetree.nvim
  12. test sheets: gF on config.get() with a real lua_ls opens the definition line

keys

j / k
next / previous line
gg / G
first / last line
⏎
open the line under the cursor
/
search plugins and apps (app: x or plugin: x narrows)
:
command line — Tab completes
:help x
vimdoc of a plugin (:e x = plugin page)
:ls · :apps · :play · :log · :stack
plugin list · app list · play area · activity stream · dependency graph
:log apps
the stream of one area (plugins or apps)
:colo x
colorscheme
:set skin=
modern | tui
?
this help
esc
close