From e572c63c7d1ea508710f3a2d81934147841f5733 Mon Sep 17 00:00:00 2001 From: Josa Gesell Date: Sun, 19 Feb 2023 10:27:15 +0100 Subject: fix: execute autocmds correctly (#2375) --- lua/telescope/pickers.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua/telescope/pickers.lua') 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 -- cgit v1.2.3