ZyX-I / nfasd

fasd for neovim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nfasd

Autocomplete nvim recent files in command line

Installation

Install the python package

pip install nfasd

Add the following line in your ~/.bashrc

eval "$(register-python-argcomplete-menu nfasd)"

# use TAB to cycle through all possible matches
# optional but highly recommended
[[ $- = *i* ]] && bind TAB:menu-complete

Alternatively, if you use zsh, add the following to ~/.zshrc

eval "$(register-python-argcomplete-menu nfasd)"
# stop shell from beeping for every complete
# optional but highly recommended
setopt NO_LIST_BEEP

Configuration

Add the following to ~/.bashrc or ~/.zshrc

alias n='nfasd -e nvim'
alias ny='nfasd -e nyaovim'

Then you can press n myPro<tab> to get n ~/myProject

Special Thanks

fasd : the awesome command line tool

About

fasd for neovim


Languages

Language:Python 100.0%