Skip to content

Neovim plugin to search text in floating window asynchronously

License

Notifications You must be signed in to change notification settings

wsdjeg/flygrep.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flygrep.nvim

flygrep.nvim is a plugin to search text in neovim floating window asynchronously

GPLv3 License

flygrep.nvim

Intro

flygrep.nvim is a neovim plugin that can be used to search code asynchronously in real time.

Requirements

  • neovim: >= v0.10.0
  • ripgrep: If you are using other searching tool, you need to set command option of flygrep.

Install

Plug 'wsdjeg/flygrep.nvim'

Command

  • :FlyGrep: open flygrep in current directory

Configuration

require('flygrep').setup({
  color_templete = {
    a = {
      fg = '#2c323c',
      bg = '#98c379',
      ctermfg = 16,
      ctermbg = 114,
      bold = true,
    },
    b = {
      fg = '#abb2bf',
      bg = '#3b4048',
      ctermfg = 145,
      ctermbg = 16,
      bold = false,
    },
  },
  timeout = 200,
  command = {
    execute = 'rg',
    default_opts = {
      '--no-heading',
      '--color=never',
      '--with-filename',
      '--line-number',
      '--column',
      '-g',
      '!.git',
    },
    recursive_opt = {},
    expr_opt = { '-e' },
    fixed_string_opt = { '-F' },
    default_fopts = { '-N' },
    smart_case = { '-S' },
    ignore_case = { '-i' },
    hidden_opt = { '--hidden' },
  },
  matched_higroup = 'IncSearch',
  enable_preview = false,
})

Key Bindings

Key bindings descretion
<Enter> open cursor item
<Tab> or <C-j> next item
<S-Tab> or <C-k> previous item
<C-s> open item in split window
<C-v> open item in vertical split window
<C-t> open item in new tabpage
<C-p> toggle preview window
<C-h> toggle display hidden files

Feedback

The development of this plugin is in SpaceVim/bundle/flygrep.nvim directory.

If you encounter any bugs or have suggestions, please file an issue in the issue tracker

About

Neovim plugin to search text in floating window asynchronously

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages