Add user autocmd TelescopeFindPre (#491)
* Add user autocmd Telescope * change name to TelescopeFindPre * update Readme for Telescope user autocmds
This commit is contained in:
@@ -520,6 +520,15 @@ Telescope find_files theme=get_dropdown
|
|||||||
Themes should work with every `telescope.builtin` function. If you wish to
|
Themes should work with every `telescope.builtin` function. If you wish to
|
||||||
make theme, check out `lua/telescope/themes.lua`.
|
make theme, check out `lua/telescope/themes.lua`.
|
||||||
|
|
||||||
|
## Autocmds
|
||||||
|
|
||||||
|
Telescope user autocmds:
|
||||||
|
|
||||||
|
| Event | Description |
|
||||||
|
|---------------------------------|----------------------------------------------------|
|
||||||
|
| `User TelescopeFindPre` | Do it before create Telescope all the float window |
|
||||||
|
| `User TelescopePreviewerLoaded` | Do it after Telescope previewer window create |
|
||||||
|
|
||||||
|
|
||||||
## Extensions
|
## Extensions
|
||||||
|
|
||||||
|
|||||||
@@ -326,6 +326,9 @@ function Picker:find()
|
|||||||
|
|
||||||
self.original_win_id = a.nvim_get_current_win()
|
self.original_win_id = a.nvim_get_current_win()
|
||||||
|
|
||||||
|
-- User autocmd run it before create Telescope window
|
||||||
|
vim.cmd'do User TelescopeFindPre'
|
||||||
|
|
||||||
-- Create three windows:
|
-- Create three windows:
|
||||||
-- 1. Prompt window
|
-- 1. Prompt window
|
||||||
-- 2. Options window
|
-- 2. Options window
|
||||||
|
|||||||
Reference in New Issue
Block a user