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