mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-22 08:53:33 +02: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
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue