AutoYADM commit: 2024-12-13 17:00:01
This commit is contained in:
parent
011bb03b52
commit
ef96c8de23
2 changed files with 27 additions and 24 deletions
|
@ -3,24 +3,24 @@ return {
|
|||
"zbirenbaum/copilot-cmp",
|
||||
enabled = false,
|
||||
opts = function()
|
||||
require("copilot.command").disable()
|
||||
local cptoggle = Snacks.toggle.new({
|
||||
name = "Copilot",
|
||||
-- map = vim.keymap.set,
|
||||
which_key = true,
|
||||
get = function()
|
||||
return not require("copilot.client").is_disabled()
|
||||
end,
|
||||
notify = true,
|
||||
set = function(state)
|
||||
if state then
|
||||
require("copilot.command").enable()
|
||||
else
|
||||
require("copilot.command").disable()
|
||||
end
|
||||
end,
|
||||
})
|
||||
Snacks.toggle.map(cptoggle, "<leader>at", { desc = "Toggle Copilot" })
|
||||
-- require("copilot.command").disable()
|
||||
-- local cptoggle = Snacks.toggle.new({
|
||||
-- name = "Copilot",
|
||||
-- -- map = vim.keymap.set,
|
||||
-- which_key = true,
|
||||
-- get = function()
|
||||
-- return not require("copilot.client").is_disabled()
|
||||
-- end,
|
||||
-- notify = true,
|
||||
-- set = function(state)
|
||||
-- if state then
|
||||
-- require("copilot.command").enable()
|
||||
-- else
|
||||
-- require("copilot.command").disable()
|
||||
-- end
|
||||
-- end,
|
||||
-- })
|
||||
-- Snacks.toggle.map(cptoggle, "<leader>at", { desc = "Toggle Copilot" })
|
||||
end,
|
||||
},
|
||||
{ "CopilotC-Nvim/CopilotChat.nvim", opts = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue