nvim/lua/utils.lua
2024-05-22 13:59:00 +02:00

18 lines
269 B
Lua

local M = {}
function M.telescope(builtin)
return function()
require("telescope.builtin")[builtin]()
end
end
function M.get_or_default(value, default)
if value ~= nil then
return value
else
return default
end
end
return M