Seamless fish integration when running inside neovim
- Clear neovim terminal scrollback with
clear - Change neovim tab working directory with
cd - Open a new split inside current instance with
nvim - List active neovim sessions, with their id and working directory, with
nvim sessions— includes Neordr editors (/tmp/neordr-*/nvim.sock) - Attach a UI to another running neovim instance with
nvim attach [id]— press<Tab>for an interactive picker - List the remote UIs attached to your sessions with
nvim detach, and detach one from its session withnvim detach <id>(the id is the attached client's pid) — press<Tab>for the list of attached UIs - Jump straight to a line (and column) with compiler-style references, e.g.
nvim src/main.rs:42ornvim src/main.rs:42:7 $EDITOR/$VISUALopen in the current instance's focused split —git commit,git rebase -i,crontab -eand friends wait for:bdinstead of spawning a nested editor<Tab>shows fish's own completions in a floating-window popup on the parent neovim instance instead of fish's native pager — type to fuzzy-filter, arrow keys/<C-n>/<C-p>/<Tab>to navigate,<Enter>to accept,<Esc>to cancel
$fish_neovim_completion_popup— controls the<Tab>completion popup. On by default; set to0to disable it and keep fish's native pager instead.$fish_neovim_extra_sockets— extra sockets fornvim sessions,attachanddetachto look at, as socket paths or globs, e.g.set -g fish_neovim_extra_sockets '/srv/editors/*.sock' ~/.cache/my-nvim.sock. Session ids are always the pid reported by the server (getpid()), fetched together with the working directory in a single RPC.
This package requires neovim remote to work.
$ omf install neovimMIT © Derek Stavis et al