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

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

View file

@ -2,25 +2,24 @@ return {
{
"zbirenbaum/copilot-cmp",
opts = function()
local copilot_toggle = require("lazyvim.util.toggle").wrap({
name = "Copilot Completion",
get = function()
return not require("copilot.client").is_disabled()
end,
set = function(state)
if state then
require("copilot.command").enable()
else
require("copilot.command").disable()
end
end,
})
-- local copilot_toggle = require("lazyvim.util.toggle").wrap({
-- name = "Copilot Completion",
-- get = function()
-- return not require("copilot.client").is_disabled()
-- end,
-- set = function(state)
-- if state then
-- require("copilot.command").enable()
-- else
-- require("copilot.command").disable()
-- end
-- end,
-- })
-- disable by default
require("copilot.command").disable()
local cpt = Snacks.toggle.new({
local cptoggle = Snacks.toggle.new({
name = "Copilot",
map = vim.keymap.set,
-- map = vim.keymap.set,
which_key = true,
get = function()
return not require("copilot.client").is_disabled()
@ -34,6 +33,7 @@ return {
end
end,
})
Snacks.toggle.map(cptoggle, "<leader>at", { desc = "Toggle Copilot" })
-- LazyVim.toggle.map("<leader>at", copilot_toggle)
end,
},

View file

@ -77,6 +77,7 @@ return {
-- Group.new("gotype", colors.primary)
Group.new("Boolean", colors.complement)
Group.new("Constant", colors.complement)
-- TODO: change these groups to match Snacks instead...
Group.new("NotifyINFOBorder", colors.infoborder)
Group.new("NotifyINFOTitle", colors.complement)
Group.new("NotifyINFOIcon", colors.complement)

View file

@ -102,3 +102,5 @@
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(+)
[main cc0e5ef] Auto commit: 2024-11-08 19:00:02
2 files changed, 19 insertions(+), 2 deletions(-)