mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-01 03:11:35 +08:00
docs(flygrep): update readme
This commit is contained in:
parent
626a319813
commit
b12cdcf059
@ -43,6 +43,22 @@ Plug 'wsdjeg/flygrep.nvim'
|
||||
- cwd: root directory of searching job
|
||||
- input: default input text in prompt window
|
||||
|
||||
search text in buffer directory:
|
||||
|
||||
```lua
|
||||
require('flygrep').open({
|
||||
cwd = vim.fn.fnamemodify(vim.fn.bufname(), ':p:h'),
|
||||
})
|
||||
```
|
||||
|
||||
search text under the cursor:
|
||||
|
||||
```lua
|
||||
require('flygrep').open({
|
||||
input = vim.fn.expand('<cword>')
|
||||
})
|
||||
```
|
||||
|
||||
## Configuration
|
||||
|
||||
```lua
|
||||
|
Loading…
Reference in New Issue
Block a user