feat(util): telescope helper

This commit is contained in:
Folke Lemaitre 2023-01-02 17:36:11 +01:00
parent e6dfed58f7
commit b62655f0b9
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -54,4 +54,12 @@ function M.get_root()
return root return root
end end
function M.telescope(builtin, opts)
return function()
opts = opts or {}
opts.cwd = M.get_root()
require("telescope.builtin")[builtin](opts)
end
end
return M return M