AutoYADM commit: 2024-12-08 14:45:04
This commit is contained in:
parent
d111acb8a4
commit
aef09bff1c
1 changed files with 19 additions and 0 deletions
|
@ -1,4 +1,23 @@
|
||||||
return {
|
return {
|
||||||
"wfxr/minimap.vim",
|
"wfxr/minimap.vim",
|
||||||
build = "cargo install --locked code-minimap",
|
build = "cargo install --locked code-minimap",
|
||||||
|
config = function()
|
||||||
|
local cptoggle = 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,
|
||||||
|
})
|
||||||
|
Snacks.toggle.map(cptoggle, "<leader>at", { desc = "Toggle Copilot" })
|
||||||
|
end,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue