mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-22 08:53:33 +02:00
fix(copilot-chat): no need to schedule which-key keys. just use default
This commit is contained in:
parent
3fadf6af8f
commit
6678af37ee
1 changed files with 10 additions and 7 deletions
|
@ -50,13 +50,6 @@ return {
|
||||||
mode = { "n", "v" },
|
mode = { "n", "v" },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
init = function()
|
|
||||||
LazyVim.on_load("which-key.nvim", function()
|
|
||||||
vim.schedule(function()
|
|
||||||
require("which-key").register({ a = { name = "+ai" } }, { prefix = "<leader>" })
|
|
||||||
end)
|
|
||||||
end)
|
|
||||||
end,
|
|
||||||
config = function(_, opts)
|
config = function(_, opts)
|
||||||
local chat = require("CopilotChat")
|
local chat = require("CopilotChat")
|
||||||
require("CopilotChat.integrations.cmp").setup()
|
require("CopilotChat.integrations.cmp").setup()
|
||||||
|
@ -73,6 +66,16 @@ return {
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"folke/which-key.nvim",
|
||||||
|
optional = true,
|
||||||
|
opts = {
|
||||||
|
defaults = {
|
||||||
|
["<leader>a"] = { name = "+ai" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
-- Telescope integration
|
-- Telescope integration
|
||||||
{
|
{
|
||||||
"nvim-telescope/telescope.nvim",
|
"nvim-telescope/telescope.nvim",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue