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 = {

View file

@ -100,3 +100,5 @@
[main 87929a5] Auto commit: 2024-11-08 18:50:02
3 files changed, 7 insertions(+), 1 deletion(-)
create mode 100644 .config/nvim/lua/plugins/no-neck-pain.lua
[main 19bdcd3] Auto commit: 2024-11-08 18:55:02
1 file changed, 3 insertions(+)