Skip to content

haphamdev/vimrg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vimrg

Little tool to support glob for fzf-lua in nvim

How to use:

Build the tool

  • Clone the project
  • Build: if you prefer Golang: go build. If you prefer Rust cargo build --release
  • Copy vimrg to your PATH

Configure nvim

  • Install fzf-lua
  • Use :lua require('fzf-lua').live_grep({ cmd = "vimrg" }) to open the fzf live_grep supporting globs

Syntax:

Syntax for vimrg as a CLI tool:

Find myservice in all files

vimrg myservice

Find myservice in test files

vimrg *test* > myservice

Find myservice in non-test files

vimrg !*test* > myservice

Find myservice in non-test controller files

vimrg !*test* *controller* > myservice

Find myservice not in /test/ directories

vimrg !*/test/* > myservice

Syntax in nvim for fzf-lua

Remove vimrg from the CLI syntax

About

Little tool to support glob for fzf-lua in nvim

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published