nvim/lua/utils.lua

18 lines
269 B
Lua
Raw Normal View History

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