mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
fix(telescope): function name
This commit is contained in:
parent
4ab7d8f19a
commit
d70c5d13d3
1 changed files with 2 additions and 2 deletions
|
|
@ -33,7 +33,7 @@ function M.telescope(builtin, opts)
|
||||||
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
|
---@diagnostic disable-next-line: inject-field
|
||||||
local function open_git_files()
|
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()
|
||||||
M.telescope(
|
M.telescope(
|
||||||
|
|
@ -43,7 +43,7 @@ function M.telescope(builtin, opts)
|
||||||
end
|
end
|
||||||
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_git_files, { desc = "Open git_files" })
|
map("i", "<a-c>", open_cwd_dir, { desc = "Open root directory" })
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue