diff --git a/lua/lazyvim/plugins/extras/editor/telescope.lua b/lua/lazyvim/plugins/extras/editor/telescope.lua index 9d40dcdf..eda92c85 100644 --- a/lua/lazyvim/plugins/extras/editor/telescope.lua +++ b/lua/lazyvim/plugins/extras/editor/telescope.lua @@ -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")