From be9a0e5236783b67af1293a4852f4f68ae77f134 Mon Sep 17 00:00:00 2001 From: TJ DeVries Date: Tue, 22 Sep 2020 09:59:06 -0400 Subject: fix: Close existing pickers when starting new one. Fix #102 --- lua/telescope/state.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lua/telescope/state.lua') diff --git a/lua/telescope/state.lua b/lua/telescope/state.lua index 8399c05..a014a0d 100644 --- a/lua/telescope/state.lua +++ b/lua/telescope/state.lua @@ -15,4 +15,8 @@ function state.clear_status(prompt_bufnr) state.set_status(prompt_bufnr, nil) end +function state.get_existing_prompts() + return vim.tbl_keys(TelescopeGlobalState) +end + return state -- cgit v1.2.3