1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-03-01 06:41:34 +08:00

docs(flygrep): update readme

This commit is contained in:
Eric Wong 2025-02-16 21:12:47 +08:00
parent 626a319813
commit b12cdcf059
No known key found for this signature in database
GPG Key ID: 41BB7053E835C848

View File

@ -43,6 +43,22 @@ Plug 'wsdjeg/flygrep.nvim'
- cwd: root directory of searching job - cwd: root directory of searching job
- input: default input text in prompt window - 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 ## Configuration
```lua ```lua