diff --git a/lua/taken/functions/themes.lua b/lua/taken/functions/themes.lua index 7bb0347..1fc05ed 100644 --- a/lua/taken/functions/themes.lua +++ b/lua/taken/functions/themes.lua @@ -48,6 +48,11 @@ function M.themeselector() end local exec = function(choice) + + if choice == nil then + return + end + vim.cmd("colorscheme " .. choice) local newstring = 'M.colorscheme = "' .. choice .. '"' change_theme(oldstring, newstring)