feat(util): telescope helper
This commit is contained in:
1 file changed
+8
@@ -54,4 +54,12 @@ function M.get_root()
|
||||
return root
|
||||
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
|
||||
Reference in new issue
Block a user