Skip to content

About

Integrate neovim terminal with Fish. Open files in the running instance, clear scroll back, attach to remote sessions.

Resources

Stars

6 stars

Watchers

0 watching

Forks

Latest commit

 

History

18 Commits

Folders and files

Repository files navigation

neovim

Seamless fish integration when running inside neovim

MIT License Fish Shell Version Oh My Fish Framework


Features

  • 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 with nvim 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:42 or nvim src/main.rs:42:7
  • $EDITOR/$VISUAL open in the current instance's focused split — git commit, git rebase -i, crontab -e and friends wait for :bd instead 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

Settings

  • $fish_neovim_completion_popup — controls the <Tab> completion popup. On by default; set to 0 to disable it and keep fish's native pager instead.
  • $fish_neovim_extra_sockets — extra sockets for nvim sessions, attach and detach to 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.

Requirements

This package requires neovim remote to work.

Install

$ omf install neovim

License

MIT © Derek Stavis et al

About

Integrate neovim terminal with Fish. Open files in the running instance, clear scroll back, attach to remote sessions.

Resources

Stars

6 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages