Skip to content

Commit 38ab808

Browse files
authored
feat(copilotchat-nvim)!: update to v3 (#1292)
feat(copilotchat-nvim): update to v3
1 parent de8bd4f commit 38ab808

File tree

1 file changed

+4
-22
lines changed
  • lua/astrocommunity/editing-support/copilotchat-nvim

1 file changed

+4
-22
lines changed

lua/astrocommunity/editing-support/copilotchat-nvim/init.lua

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---@type LazySpec
22
return {
33
"CopilotC-Nvim/CopilotChat.nvim",
4-
version = "^2",
4+
version = "^3",
55
cmd = {
66
"CopilotChat",
77
"CopilotChatOpen",
@@ -13,14 +13,14 @@ return {
1313
"CopilotChatLoad",
1414
"CopilotChatDebugInfo",
1515
"CopilotChatModels",
16+
"CopilotChatAgents",
1617
"CopilotChatExplain",
1718
"CopilotChatReview",
1819
"CopilotChatFix",
1920
"CopilotChatOptimize",
2021
"CopilotChatDocs",
21-
"CopilotChatFixDiagnostic",
22+
"CopilotChatFixTests",
2223
"CopilotChatCommit",
23-
"CopilotChatCommitStaged",
2424
},
2525
dependencies = {
2626
{ "zbirenbaum/copilot.lua" },
@@ -87,16 +87,6 @@ return {
8787
desc = "Prompt actions",
8888
}
8989

90-
maps.n[prefix .. "d"] = {
91-
create_mapping("help_actions", "buffer"),
92-
desc = "LSP Diagnostics actions",
93-
}
94-
95-
maps.v[prefix .. "d"] = {
96-
create_mapping("help_actions", "visual"),
97-
desc = "LSP Diagnostics actions",
98-
}
99-
10090
-- Quick Chat function
10191
local function quick_chat(selection_type)
10292
return function()
@@ -121,13 +111,5 @@ return {
121111
},
122112
{ "AstroNvim/astroui", opts = { icons = { CopilotChat = "" } } },
123113
},
124-
opts = {
125-
window = {
126-
layout = "float",
127-
width = 74, -- absolute width in columns
128-
height = vim.o.lines - 4, -- absolute height in rows, subtract for command line and status line
129-
row = 1, -- row position of the window, starting from the top
130-
col = vim.o.columns - 74, -- column position of the window, aligned to the right
131-
},
132-
},
114+
opts = {},
133115
}

0 commit comments

Comments
 (0)