From 790b4bcbd21dc868b652c0a37436f805e5a55680 Mon Sep 17 00:00:00 2001 From: Andre Freitas Date: Fri, 27 Oct 2023 13:02:56 +0100 Subject: [PATCH] fix(telescope): diagnostic disable --- lua/lazyvim/util/telescope.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lazyvim/util/telescope.lua b/lua/lazyvim/util/telescope.lua index f8da00ff..d977c4f7 100644 --- a/lua/lazyvim/util/telescope.lua +++ b/lua/lazyvim/util/telescope.lua @@ -32,7 +32,6 @@ function M.telescope(builtin, opts) end end if opts.cwd and opts.cwd ~= vim.loop.cwd() then - ---@diagnostic disable-next-line: inject-field local function open_cwd_dir() local action_state = require("telescope.actions.state") local line = action_state.get_current_line() @@ -41,6 +40,7 @@ function M.telescope(builtin, opts) vim.tbl_deep_extend("force", {}, params.opts or {}, { cwd = false, default_text = line }) )() end + ---@diagnostic disable-next-line: inject-field opts.attach_mappings = function(_, map) -- opts.desc is overridden by telescope, until it's changed there is this fix map("i", "", open_cwd_dir, { desc = "Open cwd directory" })