Skip to content

Commit 405cf5c

Browse files
committed
update readme
1 parent 04a28cd commit 405cf5c

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

HOOK_EXAMPLES.md

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
## Print hint after switch project
2+
3+
```lua
4+
{
5+
callback = function(_)
6+
vim.cmd("Telescope find_files")
7+
end,
8+
}
9+
```
10+
11+
## Open Telescope to find files right after switch project
12+
13+
```lua
14+
{
15+
callback = function(_)
16+
vim.cmd("Telescope find_files")
17+
end,
18+
}
19+
```

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ return {
3838
vim.notify("switched to dir: " .. dir)
3939
end,
4040
},
41+
{
42+
callback = function(_)
43+
vim.cmd("Telescope find_files")
44+
end,
45+
},
4146
{
4247
callback = function(dir)
4348
vim.notify("switched to dir: " .. dir)
@@ -56,6 +61,8 @@ return {
5661
}
5762
```
5863

64+
> [Hook examples](./HOOK_EXAMPLES.md)
65+
5966
## Commands and Apis
6067

6168
| Command | Description |

0 commit comments

Comments
 (0)