Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(copilotchat-nvim)!: update to v3 #1292

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 4 additions & 22 deletions lua/astrocommunity/editing-support/copilotchat-nvim/init.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---@type LazySpec
return {
"CopilotC-Nvim/CopilotChat.nvim",
version = "^2",
version = "^3",
cmd = {
"CopilotChat",
"CopilotChatOpen",
Expand All @@ -13,14 +13,14 @@ return {
"CopilotChatLoad",
"CopilotChatDebugInfo",
"CopilotChatModels",
"CopilotChatAgents",
"CopilotChatExplain",
"CopilotChatReview",
"CopilotChatFix",
"CopilotChatOptimize",
"CopilotChatDocs",
"CopilotChatFixDiagnostic",
"CopilotChatFixTests",
"CopilotChatCommit",
"CopilotChatCommitStaged",
},
dependencies = {
{ "zbirenbaum/copilot.lua" },
Expand Down Expand Up @@ -87,16 +87,6 @@ return {
desc = "Prompt actions",
}

maps.n[prefix .. "d"] = {
create_mapping("help_actions", "buffer"),
desc = "LSP Diagnostics actions",
}

maps.v[prefix .. "d"] = {
create_mapping("help_actions", "visual"),
desc = "LSP Diagnostics actions",
}

-- Quick Chat function
local function quick_chat(selection_type)
return function()
Expand All @@ -121,13 +111,5 @@ return {
},
{ "AstroNvim/astroui", opts = { icons = { CopilotChat = "" } } },
},
opts = {
window = {
layout = "float",
width = 74, -- absolute width in columns
height = vim.o.lines - 4, -- absolute height in rows, subtract for command line and status line
row = 1, -- row position of the window, starting from the top
col = vim.o.columns - 74, -- column position of the window, aligned to the right
},
},
opts = {},
}
Loading