From e0feea94071d754bd3cd72f3472cd1c4845dd32a Mon Sep 17 00:00:00 2001 From: siduck76 Date: Sat, 14 Aug 2021 22:31:32 +0530 Subject: [PATCH] cleanup ! --- lua/telescope/_extensions/themes.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lua/telescope/_extensions/themes.lua b/lua/telescope/_extensions/themes.lua index 1c6ec44..79ff444 100644 --- a/lua/telescope/_extensions/themes.lua +++ b/lua/telescope/_extensions/themes.lua @@ -120,9 +120,7 @@ M.theme_switcher = function(opts) -- will be used in restoring nvchad theme var final_theme = current_theme end - end - -- open a buffer and close it to reload the statusline - vim.cmd("new|bwipeout") + end else final_theme = current_theme end