mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-28 03:30:12 +02:00
feat(root): customizable root detection and :LazyRoot
command
This commit is contained in:
parent
5538ab2d64
commit
171a843edf
6 changed files with 126 additions and 38 deletions
|
@ -22,7 +22,7 @@ function M.telescope(builtin, opts)
|
|||
return function()
|
||||
builtin = params.builtin
|
||||
opts = params.opts
|
||||
opts = vim.tbl_deep_extend("force", { cwd = Util.root.get() }, opts or {}) --[[@as lazyvim.util.telescope.opts]]
|
||||
opts = vim.tbl_deep_extend("force", { cwd = Util.root() }, opts or {}) --[[@as lazyvim.util.telescope.opts]]
|
||||
if builtin == "files" then
|
||||
if vim.loop.fs_stat((opts.cwd or vim.loop.cwd()) .. "/.git") then
|
||||
opts.show_untracked = true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue