From 4ab7d8f19adff68fe8f0c0e5b8b1eebf3b6bde44 Mon Sep 17 00:00:00 2001 From: Andre Freitas Date: Thu, 26 Oct 2023 14:12:48 +0100 Subject: [PATCH] fix(telescope): add desc --- lua/lazyvim/util/telescope.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lua/lazyvim/util/telescope.lua b/lua/lazyvim/util/telescope.lua index ae9ec0e2..277f2b87 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_root() + local function open_git_files() local action_state = require("telescope.actions.state") local line = action_state.get_current_line() M.telescope( @@ -42,7 +42,8 @@ function M.telescope(builtin, opts) )() end opts.attach_mappings = function(_, map) - map("i", "", open_git_root) + -- opts.desc is overridden by telescope, until it's changed there is this fix + map("i", "", open_git_files, { desc = "Open git_files" }) return true end end