/nvim-viper

Neovim fuzzy finder using fzf, taking inspiration from swiper.el

Primary LanguageLua

Viper

Installation

Plug 'vijaymarupudi/nvim-fzf' " Pre-requisite
Plug 'dkendal/nvim-viper'

Viper special buffer key bindings

Key bindingeffect
<ctrl-g>, <ctrl-c>, <ctrl-d>, <esc>exit
<enter>make selection

Commands

ViperBuffers

Buffer listing, previews selection.

./docs/viper-buffers.gif

ViperRegisters

List register contents, selection

./docs/viper-registers.gif

ViperFiles

Supply a shell command that produces a list of files.

./docs/viper-files.gif

ViperGrep

Supply a shell command that produces vimgrep output. Previews each selection while filtering

./docs/viper-grep.gif

Global Key bindings

Viper doesn’t ship with any keybindings. Here are some suggestions:

nn <leader>bb        :ViperBuffers<cr>

nn <leader>pr        :ViperRegisters<cr>

nn <leader>ff        :ViperFiles fd<cr>

nn <leader>/         :ViperGrep rg --vimgrep<space>
vn <leader>/ y:<C-u> :ViperGrep rg --vimgrep -w -- <C-r>0<CR>