From 8e1a76663e9570ef11d8fcbc8da30b432f11226c Mon Sep 17 00:00:00 2001 From: Taken Date: Tue, 15 Oct 2024 18:00:57 +0200 Subject: [PATCH] Changed function names --- lua/taken/utils/themefuncs.lua | 4 ++-- lua/taken/utils/themes.lua | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lua/taken/utils/themefuncs.lua b/lua/taken/utils/themefuncs.lua index 2a8d775..d265204 100644 --- a/lua/taken/utils/themefuncs.lua +++ b/lua/taken/utils/themefuncs.lua @@ -37,7 +37,7 @@ local change_theme = function(old, new, prefsFile) file:close() end -local exec = function(choice, prefsFile) +local applytofile = function(choice, prefsFile) if choice == nil then vim.notify("No theme selected!", 4) return @@ -56,5 +56,5 @@ end return { getAllThemes = getAllThemes, change_theme = change_theme, - exec = exec, + applytofile = applytofile, } diff --git a/lua/taken/utils/themes.lua b/lua/taken/utils/themes.lua index 2fa2161..25c08e9 100644 --- a/lua/taken/utils/themes.lua +++ b/lua/taken/utils/themes.lua @@ -13,7 +13,7 @@ function M.themeselector(opts) local prefsFile = configDir .. "/lua/taken/prefs.lua" local themes = themefuncs.getAllThemes() - local exec = themefuncs.exec + local applytofile = themefuncs.applytofile opts = opts or {} pickers @@ -27,7 +27,7 @@ function M.themeselector(opts) actions.select_default:replace(function() actions.close(prompt_bufnr) local selection = action_state.get_selected_entry() - exec(selection.value, prefsFile) + applytofile(selection.value, prefsFile) end) action_set.shift_selection:enhance({ post = function()