Changed function names
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user