From c344becc4b70fe9115282048610747756d419455 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej=20Boczar?= Date: Sat, 18 Nov 2023 19:47:59 +0100 Subject: [PATCH] fix(telescope): explicitly return to normal mode after session load (#47) --- lua/possession/telescope.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/possession/telescope.lua b/lua/possession/telescope.lua index 977d121..f8d348f 100644 --- a/lua/possession/telescope.lua +++ b/lua/possession/telescope.lua @@ -42,6 +42,8 @@ local session_actions = { end, load = function(prompt_buf, entry, _refresh) actions.close(prompt_buf) + -- For some reason telescope stays in insert mode (#46) + vim.cmd.stopinsert() session.load(entry.value.name) end, delete = function(prompt_buf, entry, refresh)