mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
fix(telescope): respect show_untracked in user configuration
This commit is contained in:
parent
ff1b44e676
commit
4a7d5465d5
1 changed files with 4 additions and 0 deletions
|
|
@ -21,6 +21,10 @@ local picker = {
|
|||
open = function(builtin, opts)
|
||||
opts = opts or {}
|
||||
opts.follow = opts.follow ~= false
|
||||
local tele_opts = LazyVim.opts("telescope.nvim")
|
||||
if tele_opts.pickers and tele_opts.pickers.git_files then
|
||||
opts.show_untracked = tele_opts.pickers.git_files.show_untracked ~= false
|
||||
end
|
||||
if opts.cwd and opts.cwd ~= vim.uv.cwd() then
|
||||
local function open_cwd_dir()
|
||||
local action_state = require("telescope.actions.state")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue