mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
fix(telescope): diagnostic disable
This commit is contained in:
parent
e8f2b72a13
commit
790b4bcbd2
1 changed files with 1 additions and 1 deletions
|
|
@ -32,7 +32,6 @@ function M.telescope(builtin, opts)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if opts.cwd and opts.cwd ~= vim.loop.cwd() then
|
if opts.cwd and opts.cwd ~= vim.loop.cwd() then
|
||||||
---@diagnostic disable-next-line: inject-field
|
|
||||||
local function open_cwd_dir()
|
local function open_cwd_dir()
|
||||||
local action_state = require("telescope.actions.state")
|
local action_state = require("telescope.actions.state")
|
||||||
local line = action_state.get_current_line()
|
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 })
|
vim.tbl_deep_extend("force", {}, params.opts or {}, { cwd = false, default_text = line })
|
||||||
)()
|
)()
|
||||||
end
|
end
|
||||||
|
---@diagnostic disable-next-line: inject-field
|
||||||
opts.attach_mappings = function(_, map)
|
opts.attach_mappings = function(_, map)
|
||||||
-- opts.desc is overridden by telescope, until it's changed there is this fix
|
-- opts.desc is overridden by telescope, until it's changed there is this fix
|
||||||
map("i", "<a-c>", open_cwd_dir, { desc = "Open cwd directory" })
|
map("i", "<a-c>", open_cwd_dir, { desc = "Open cwd directory" })
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue