mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-12-25 12:14:19 +01:00
## Description The extras spec includes its own keymaps for the most common commands now so these are redundant and causing duplicate entries in which-key. ## Checklist - [x] I've read the [CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md) guidelines.
90 lines
2.5 KiB
Lua
90 lines
2.5 KiB
Lua
return {
|
|
{ "MunifTanjim/nui.nvim", lazy = true },
|
|
|
|
{
|
|
"yetone/avante.nvim",
|
|
build = vim.fn.has("win32") ~= 0 and "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false"
|
|
or "make",
|
|
event = "VeryLazy",
|
|
opts = {
|
|
provider = "copilot",
|
|
selection = {
|
|
hint_display = "none",
|
|
},
|
|
behaviour = {
|
|
auto_set_keymaps = false,
|
|
},
|
|
},
|
|
cmd = {
|
|
"AvanteAsk",
|
|
"AvanteBuild",
|
|
"AvanteChat",
|
|
"AvanteClear",
|
|
"AvanteEdit",
|
|
"AvanteFocus",
|
|
"AvanteHistory",
|
|
"AvanteModels",
|
|
"AvanteRefresh",
|
|
"AvanteShowRepoMap",
|
|
"AvanteStop",
|
|
"AvanteSwitchProvider",
|
|
"AvanteToggle",
|
|
},
|
|
keys = {
|
|
{ "<leader>aa", "<cmd>AvanteAsk<CR>", desc = "Ask Avante" },
|
|
{ "<leader>ac", "<cmd>AvanteChat<CR>", desc = "Chat with Avante" },
|
|
{ "<leader>ae", "<cmd>AvanteEdit<CR>", desc = "Edit Avante" },
|
|
{ "<leader>af", "<cmd>AvanteFocus<CR>", desc = "Focus Avante" },
|
|
{ "<leader>ah", "<cmd>AvanteHistory<CR>", desc = "Avante History" },
|
|
{ "<leader>am", "<cmd>AvanteModels<CR>", desc = "Select Avante Model" },
|
|
{ "<leader>an", "<cmd>AvanteChatNew<CR>", desc = "New Avante Chat" },
|
|
{ "<leader>ap", "<cmd>AvanteSwitchProvider<CR>", desc = "Switch Avante Provider" },
|
|
{ "<leader>ar", "<cmd>AvanteRefresh<CR>", desc = "Refresh Avante" },
|
|
{ "<leader>as", "<cmd>AvanteStop<CR>", desc = "Stop Avante" },
|
|
{ "<leader>at", "<cmd>AvanteToggle<CR>", desc = "Toggle Avante" },
|
|
},
|
|
},
|
|
|
|
-- support for image pasting
|
|
{
|
|
"HakonHarnes/img-clip.nvim",
|
|
event = "VeryLazy",
|
|
optional = true,
|
|
opts = {
|
|
-- recommended settings
|
|
default = {
|
|
embed_image_as_base64 = false,
|
|
prompt_for_file_name = false,
|
|
drag_and_drop = {
|
|
insert_mode = true,
|
|
},
|
|
-- required for Windows users
|
|
use_absolute_path = true,
|
|
},
|
|
},
|
|
},
|
|
|
|
-- Make sure to set this up properly if you have lazy=true
|
|
{
|
|
"MeanderingProgrammer/render-markdown.nvim",
|
|
optional = true,
|
|
opts = {
|
|
file_types = { "markdown", "Avante" },
|
|
},
|
|
ft = { "markdown", "Avante" },
|
|
},
|
|
|
|
-- blink.cmp source for avante.nvim
|
|
{
|
|
"saghen/blink.cmp",
|
|
optional = true,
|
|
specs = { "Kaiser-Yang/blink-cmp-avante" },
|
|
opts = {
|
|
sources = {
|
|
default = { "avante" },
|
|
providers = { avante = { module = "blink-cmp-avante", name = "Avante" } },
|
|
},
|
|
},
|
|
},
|
|
}
|