d79e2d5ecb
inspired by https://github.com/BijanVeyssi/nvim-config
18 lines
269 B
Lua
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
|