Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 1.19 KB

README.md

File metadata and controls

32 lines (21 loc) · 1.19 KB

neovim plugin

The neovim plugin provides some functions and aliases for neovim, nvim-qt and neovide.

To use it, add neovim to plugins array in your ~/.bashrc or ~/.zshrc file:

export SF_PLUGINS=(... neovim)

Aliases

Alias Command
nvCf cd ~/.config/nvim; ${SF_EDITOR} .
nvnorc nvim -u NORC

Functions

  • nv: Executes nvim with flags setted in SF_NV_FLAGS_FILES and SF_NV_FLAGS_CUR_FOLDER variables.
  • nvq: Executes nvim-qt with flags setted in SF_NV_FLAGS_FILES and SF_NV_FLAGS_CUR_FOLDER.
  • nvqNb: Same as executes nvq, but it does not block your terminal.
  • nvd: Executes neovide with flags setted in SF_NV_FLAGS_FILES and SF_NV_FLAGS_CUR_FOLDER.

Settings

  • SF_NV_FLAGS_FILES: Flags passed to functions nv, nvq, nvqNb and nvd when receive files as arguments.
  • SF_NV_FLAGS_CUR_FOLDER: Flags passed to functions nv, nvq, nvqNb and nvd when receive current folder (.) or nothing as argument.

Related software configuration