Auto commit: 2024-11-08 19:00:02

This commit is contained in:
Daniel Fichtinger 2024-11-08 19:00:02 -05:00
parent 19bdcd3a1c
commit cc0e5ef8e9
2 changed files with 19 additions and 2 deletions

View file

@ -18,8 +18,23 @@ return {
-- disable by default
require("copilot.command").disable()
LazyVim.toggle.map("<leader>at", copilot_toggle)
local cpt = 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,
})
-- LazyVim.toggle.map("<leader>at", copilot_toggle)
end,
},
{ "CopilotC-Nvim/CopilotChat.nvim", opts = {