Skip to content

Commit 6a75df8

Browse files
committed
chore: use standard picker with nvim v11
The standard picker works with nvim v11 and the latest version of CopilotChat plugin
1 parent 68860a8 commit 6a75df8

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

lua/custom/plugins/copilot-chat.lua

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,23 @@ return {
1616
contexts = {
1717
-- Open a file picker to select a file
1818
-- https://github.com/CopilotC-Nvim/CopilotChat.nvim/issues/690#issuecomment-2551162017
19-
file = {
20-
input = function(callback)
21-
local telescope = require 'telescope.builtin'
22-
local actions = require 'telescope.actions'
23-
local action_state = require 'telescope.actions.state'
24-
telescope.find_files {
25-
attach_mappings = function(prompt_bufnr)
26-
actions.select_default:replace(function()
27-
actions.close(prompt_bufnr)
28-
local selection = action_state.get_selected_entry()
29-
callback(selection[1])
30-
end)
31-
return true
32-
end,
33-
}
34-
end,
35-
},
19+
-- file = {
20+
-- input = function(callback)
21+
-- local telescope = require 'telescope.builtin'
22+
-- local actions = require 'telescope.actions'
23+
-- local action_state = require 'telescope.actions.state'
24+
-- telescope.find_files {
25+
-- attach_mappings = function(prompt_bufnr)
26+
-- actions.select_default:replace(function()
27+
-- actions.close(prompt_bufnr)
28+
-- local selection = action_state.get_selected_entry()
29+
-- callback(selection[1])
30+
-- end)
31+
-- return true
32+
-- end,
33+
-- }
34+
-- end,
35+
-- },
3636
},
3737
},
3838
keys = {

0 commit comments

Comments
 (0)