Changed function names

This commit is contained in:
2024-10-15 18:00:57 +02:00
parent 89214830e4
commit 8e1a76663e
2 changed files with 4 additions and 4 deletions

View File

@@ -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,
}

View File

@@ -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()