diff --git a/.config/nvim/lua/plugins/copilot.lua b/.config/nvim/lua/plugins/copilot.lua index fa7b43ca..333816b8 100644 --- a/.config/nvim/lua/plugins/copilot.lua +++ b/.config/nvim/lua/plugins/copilot.lua @@ -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, "at", { desc = "Toggle Copilot" }) -- LazyVim.toggle.map("at", copilot_toggle) end, }, diff --git a/.config/nvim/lua/plugins/noirbuddy.lua b/.config/nvim/lua/plugins/noirbuddy.lua index 715e62db..181d4d8f 100644 --- a/.config/nvim/lua/plugins/noirbuddy.lua +++ b/.config/nvim/lua/plugins/noirbuddy.lua @@ -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) diff --git a/.config/yadm/autoshdpad.log b/.config/yadm/autoshdpad.log index f7ff6e4b..ff1a8dbc 100644 --- a/.config/yadm/autoshdpad.log +++ b/.config/yadm/autoshdpad.log @@ -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(-)