nvim/lua/custom/plugins/avante.lua
Simon Lasbrugnas bd6e432b15
feat: avante.nvim
Avante.nvim provides a cursor (editor) like experience by providing LLM
code completion, explanations, refactor, patches, ...
2024-11-11 01:10:14 +01:00

43 lines
825 B
Lua

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" },
}
}