fix: execute autocmds correctly (#2375)

This commit is contained in:
Josa Gesell
2023-02-19 10:27:15 +01:00
committed by GitHub
parent c113522810
commit e572c63c7d
2 changed files with 2 additions and 2 deletions

View File

@@ -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