update and remove lsp inlay deprecated plugin
This commit is contained in:
parent
030882309d
commit
7fdfc21a4d
6 changed files with 23 additions and 121 deletions
|
@ -26,69 +26,6 @@ return {
|
|||
main = "copilot",
|
||||
},
|
||||
{ "zbirenbaum/copilot-cmp", opts = {}, main = "copilot_cmp" },
|
||||
{
|
||||
"CopilotC-Nvim/CopilotChat.nvim",
|
||||
branch = "canary",
|
||||
dependencies = {
|
||||
{ "zbirenbaum/copilot.lua" }, -- or github/copilot.vim
|
||||
{ "nvim-lua/plenary.nvim" }, -- for curl, log wrapper
|
||||
},
|
||||
opts = {
|
||||
chat_autocomplete = true,
|
||||
mappings = {
|
||||
complete = {
|
||||
insert = "",
|
||||
},
|
||||
},
|
||||
window = {
|
||||
layout = "float",
|
||||
relative = "cursor",
|
||||
width = 1,
|
||||
height = 0.4,
|
||||
row = 1,
|
||||
},
|
||||
},
|
||||
keys = {
|
||||
{
|
||||
"<leader>ch",
|
||||
function()
|
||||
local actions = require("CopilotChat.actions")
|
||||
require("CopilotChat.integrations.telescope").pick(actions.help_actions())
|
||||
end,
|
||||
desc = "CopilotChat - Help actions",
|
||||
mode = { "n", "v", "x" },
|
||||
},
|
||||
{
|
||||
"<leader>cp",
|
||||
function()
|
||||
local actions = require("CopilotChat.actions")
|
||||
require("CopilotChat.integrations.telescope").pick(actions.prompt_actions())
|
||||
end,
|
||||
desc = "CopilotChat - Prompt actions",
|
||||
mode = { "n", "v", "x" },
|
||||
},
|
||||
{
|
||||
"<leader>cq",
|
||||
function()
|
||||
local input = vim.fn.input("Quick Chat: ")
|
||||
if input ~= "" then
|
||||
require("CopilotChat").ask(input, { selection = require("CopilotChat.select").buffer })
|
||||
end
|
||||
end,
|
||||
desc = "CopilotChat - Quick chat",
|
||||
mode = { "n", "v", "x" },
|
||||
},
|
||||
{
|
||||
"<leader>cc",
|
||||
function()
|
||||
require("CopilotChat").toggle()
|
||||
end,
|
||||
desc = "CopilotChat - Toggle",
|
||||
mode = { "n", "v", "x" },
|
||||
},
|
||||
},
|
||||
-- See Commands section for default commands if you want to lazy load on them
|
||||
},
|
||||
},
|
||||
config = function()
|
||||
-- See `:help cmp`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue