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

View file

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

View file

@ -102,3 +102,5 @@
create mode 100644 .config/nvim/lua/plugins/no-neck-pain.lua create mode 100644 .config/nvim/lua/plugins/no-neck-pain.lua
[main 19bdcd3] Auto commit: 2024-11-08 18:55:02 [main 19bdcd3] Auto commit: 2024-11-08 18:55:02
1 file changed, 3 insertions(+) 1 file changed, 3 insertions(+)
[main cc0e5ef] Auto commit: 2024-11-08 19:00:02
2 files changed, 19 insertions(+), 2 deletions(-)