diff --git a/lua/codecompanion/providers/slash_commands/telescope.lua b/lua/codecompanion/providers/slash_commands/telescope.lua index 6bd88e228..af5e71d08 100644 --- a/lua/codecompanion/providers/slash_commands/telescope.lua +++ b/lua/codecompanion/providers/slash_commands/telescope.lua @@ -20,7 +20,7 @@ end ---The function to display the provider ---@return function function Telescope:display() - return function() + return function(_, map) local actions = require("telescope.actions") local action_state = require("telescope.actions.state") @@ -39,7 +39,7 @@ function Telescope:display() end end) end) - + map({'i', 'n'}, '', actions.select_default) return true end end