Skip to content
This repository was archived by the owner on Feb 20, 2025. It is now read-only.

Commit b12cdcf

Browse files
committed
docs(flygrep): update readme
1 parent 626a319 commit b12cdcf

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

bundle/flygrep.nvim/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,22 @@ Plug 'wsdjeg/flygrep.nvim'
4343
- cwd: root directory of searching job
4444
- input: default input text in prompt window
4545

46+
search text in buffer directory:
47+
48+
```lua
49+
require('flygrep').open({
50+
cwd = vim.fn.fnamemodify(vim.fn.bufname(), ':p:h'),
51+
})
52+
```
53+
54+
search text under the cursor:
55+
56+
```lua
57+
require('flygrep').open({
58+
input = vim.fn.expand('<cword>')
59+
})
60+
```
61+
4662
## Configuration
4763

4864
```lua

0 commit comments

Comments
 (0)