summaryrefslogtreecommitdiff
path: root/lua/telescope/pickers.lua
diff options
context:
space:
mode:
authorJosa Gesell <josa@gesell.me>2023-02-19 10:27:15 +0100
committerGitHub <noreply@github.com>2023-02-19 10:27:15 +0100
commite572c63c7d1ea508710f3a2d81934147841f5733 (patch)
tree87462896d958d393fe97e4689d0d14a0c9f93e29 /lua/telescope/pickers.lua
parentc113522810a39cc035ae178cdada583610ba6ce3 (diff)
fix: execute autocmds correctly (#2375)
Diffstat (limited to 'lua/telescope/pickers.lua')
-rw-r--r--lua/telescope/pickers.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/telescope/pickers.lua b/lua/telescope/pickers.lua
index 5019abf..40419ad 100644
--- a/lua/telescope/pickers.lua
+++ b/lua/telescope/pickers.lua
@@ -344,7 +344,7 @@ function Picker:find()
self.original_win_id = a.nvim_get_current_win()
-- User autocmd run it before create Telescope window
- vim.api.nvim_exec_autocmds("User TelescopeFindPre", {})
+ vim.api.nvim_exec_autocmds("User", { pattern = "TelescopeFindPre" })
-- Create three windows:
-- 1. Prompt window