From bd6e432b15293c30bc81049430715a43570a9857 Mon Sep 17 00:00:00 2001 From: Simon Lasbrugnas Date: Mon, 11 Nov 2024 01:10:14 +0100 Subject: [PATCH] feat: avante.nvim Avante.nvim provides a cursor (editor) like experience by providing LLM code completion, explanations, refactor, patches, ... --- lua/custom/plugins/avante.lua | 43 +++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 lua/custom/plugins/avante.lua diff --git a/lua/custom/plugins/avante.lua b/lua/custom/plugins/avante.lua new file mode 100644 index 0000000..a14bf24 --- /dev/null +++ b/lua/custom/plugins/avante.lua @@ -0,0 +1,43 @@ +return { + "yetone/avante.nvim", + lazy = false, + priority = 10, + opts = { + mappings = { + submit = { + insert = "" + } + } + }, + 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 = { + { "at", "AvanteToggle", desc = "Toggle Avante" }, + { "af", "AvanteFocus", desc = "Focus Avante" }, + } +}