feat: avante.nvim

Avante.nvim provides a cursor (editor) like experience by providing LLM
code completion, explanations, refactor, patches, ...
This commit is contained in:
Simon Lasbrugnas 2024-11-11 01:10:14 +01:00
parent 1e6b9b6b3b
commit bd6e432b15
Signed by untrusted user who does not match committer: simon
GPG key ID: 86039876BA6ED8DE

View file

@ -0,0 +1,43 @@
return {
"yetone/avante.nvim",
lazy = false,
priority = 10,
opts = {
mappings = {
submit = {
insert = "<C-s>"
}
}
},
build = "make",
dependencies = {
"stevearc/dressing.nvim",
"nvim-lua/plenary.nvim",
"MunifTanjim/nui.nvim",
"nvim-tree/nvim-web-devicons",
{
"HakonHarnes/img-clip.nvim",
event = "VeryLazy",
opts = {
default = {
embed_image_as_base64 = false,
prompt_for_file_name = false,
drag_and_drop = {
insert_mode = true,
},
},
},
},
{
"MeanderingProgrammer/render-markdown.nvim",
opts = {
file_types = { "markdown", "Avante" },
},
ft = { "markdown", "Avante" },
},
},
keys = {
{ "<leader>at", "<cmd>AvanteToggle<CR>", desc = "Toggle Avante" },
{ "<leader>af", "<cmd>AvanteFocus<CR>", desc = "Focus Avante" },
}
}