Skip to content

Commit

Permalink
feat(copilotchat-nvim)!: update to v3 (#1292)
Browse files Browse the repository at this point in the history
feat(copilotchat-nvim): update to v3
  • Loading branch information
ALameLlama authored Dec 18, 2024
1 parent de8bd4f commit 38ab808
Showing 1 changed file with 4 additions and 22 deletions.
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 = {},
}

0 comments on commit 38ab808

Please sign in to comment.