mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
feat(util): telescope helper
This commit is contained in:
parent
e6dfed58f7
commit
b62655f0b9
1 changed files with 8 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue