feat: avante.nvim
Avante.nvim provides a cursor (editor) like experience by providing LLM code completion, explanations, refactor, patches, ...
This commit is contained in:
parent
1e6b9b6b3b
commit
bd6e432b15
1 changed files with 43 additions and 0 deletions
43
lua/custom/plugins/avante.lua
Normal file
43
lua/custom/plugins/avante.lua
Normal 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" },
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue