Skip to content

Commit

Permalink
fix: always load the up to date picker config on picker open
Browse files Browse the repository at this point in the history
(cherry picked from commit 9784730)
  • Loading branch information
Conni2461 committed Jan 6, 2023
1 parent 8944b48 commit bce3684
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/telescope/builtin/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -474,9 +474,10 @@ builtin.lsp_dynamic_workspace_symbols = require_on_exported_call("telescope.buil
builtin.diagnostics = require_on_exported_call("telescope.builtin.__diagnostics").get

local apply_config = function(mod)
local pickers_conf = require("telescope.config").pickers
for k, v in pairs(mod) do
mod[k] = function(opts)
local pickers_conf = require("telescope.config").pickers

opts = opts or {}
opts.bufnr = opts.bufnr or vim.api.nvim_get_current_buf()
opts.winnr = opts.winnr or vim.api.nvim_get_current_win()
Expand Down

0 comments on commit bce3684

Please sign in to comment.