feat(copilot-chat): remove deprecated options (#4802)
- Diagnostic help was deprecated and now just proxies to prompt actions (by default diagnostics are auto included in all selections so this feature was no longer necessary) - Selecton is now visual || buffer by default so the custom selection config is no longer needed too Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
@ -24,16 +24,11 @@ return {
|
|||||||
user = user:sub(1, 1):upper() .. user:sub(2)
|
user = user:sub(1, 1):upper() .. user:sub(2)
|
||||||
return {
|
return {
|
||||||
auto_insert_mode = true,
|
auto_insert_mode = true,
|
||||||
show_help = true,
|
|
||||||
question_header = " " .. user .. " ",
|
question_header = " " .. user .. " ",
|
||||||
answer_header = " Copilot ",
|
answer_header = " Copilot ",
|
||||||
window = {
|
window = {
|
||||||
width = 0.4,
|
width = 0.4,
|
||||||
},
|
},
|
||||||
selection = function(source)
|
|
||||||
local select = require("CopilotChat.select")
|
|
||||||
return select.visual(source) or select.buffer(source)
|
|
||||||
end,
|
|
||||||
}
|
}
|
||||||
end,
|
end,
|
||||||
keys = {
|
keys = {
|
||||||
@ -66,8 +61,6 @@ return {
|
|||||||
desc = "Quick Chat (CopilotChat)",
|
desc = "Quick Chat (CopilotChat)",
|
||||||
mode = { "n", "v" },
|
mode = { "n", "v" },
|
||||||
},
|
},
|
||||||
-- Show help actions with telescope
|
|
||||||
{ "<leader>ad", M.pick("help"), desc = "Diagnostic Help (CopilotChat)", mode = { "n", "v" } },
|
|
||||||
-- Show prompts actions with telescope
|
-- Show prompts actions with telescope
|
||||||
{ "<leader>ap", M.pick("prompt"), desc = "Prompt Actions (CopilotChat)", mode = { "n", "v" } },
|
{ "<leader>ap", M.pick("prompt"), desc = "Prompt Actions (CopilotChat)", mode = { "n", "v" } },
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user