From d70c5d13d33fd3e59b5e522c2abaa9a6f722507d Mon Sep 17 00:00:00 2001 From: Andre Freitas Date: Thu, 26 Oct 2023 17:28:05 +0100 Subject: [PATCH] fix(telescope): function name --- lua/lazyvim/util/telescope.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/lazyvim/util/telescope.lua b/lua/lazyvim/util/telescope.lua index 277f2b87..75ffa602 100644 --- a/lua/lazyvim/util/telescope.lua +++ b/lua/lazyvim/util/telescope.lua @@ -33,7 +33,7 @@ function M.telescope(builtin, opts) end if opts.cwd and opts.cwd ~= vim.loop.cwd() then ---@diagnostic disable-next-line: inject-field - local function open_git_files() + local function open_cwd_dir() local action_state = require("telescope.actions.state") local line = action_state.get_current_line() M.telescope( @@ -43,7 +43,7 @@ function M.telescope(builtin, opts) end opts.attach_mappings = function(_, map) -- opts.desc is overridden by telescope, until it's changed there is this fix - map("i", "", open_git_files, { desc = "Open git_files" }) + map("i", "", open_cwd_dir, { desc = "Open root directory" }) return true end end