From 4faedd432f820a13abca6202d60c97245c13a686 Mon Sep 17 00:00:00 2001 From: Chris Schindlbeck Date: Tue, 27 Aug 2024 16:01:22 +0200 Subject: [PATCH] Add avante --- lua/plugins/avante.lua | 62 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 lua/plugins/avante.lua diff --git a/lua/plugins/avante.lua b/lua/plugins/avante.lua new file mode 100644 index 0000000..17e272d --- /dev/null +++ b/lua/plugins/avante.lua @@ -0,0 +1,62 @@ +return { + "yetone/avante.nvim", + event = "VeryLazy", + lazy = false, + opts = { + provider = "copilot", -- Set the provider to "copilot" + mappings = { + --- @class AvanteConflictMappings + diff = { + ours = "co", + theirs = "ct", + all_theirs = "ca", + both = "cb", + cursor = "cc", + next = "]x", + prev = "[x", + }, + jump = { + next = "]]", + prev = "[[", + }, + submit = { + normal = "", + insert = "", + }, + }, + }, + build = ":AvanteBuild", -- This is optional, recommended tho. + dependencies = { + "stevearc/dressing.nvim", + "nvim-lua/plenary.nvim", + "MunifTanjim/nui.nvim", + --- The below dependencies are optional, + "nvim-tree/nvim-web-devicons", -- or echasnovski/mini.icons + "zbirenbaum/copilot.lua", -- for providers='copilot' + -- { + -- -- support for image pasting + -- "HakonHarnes/img-clip.nvim", + -- event = "VeryLazy", + -- opts = { + -- -- recommended settings + -- default = { + -- embed_image_as_base64 = false, + -- prompt_for_file_name = false, + -- drag_and_drop = { + -- insert_mode = true, + -- }, + -- -- required for Windows users + -- use_absolute_path = true, + -- }, + -- }, + -- }, + { + -- Make sure to setup it properly if you have lazy=true + "MeanderingProgrammer/render-markdown.nvim", + opts = { + file_types = { "markdown", "Avante" }, + }, + ft = { "markdown", "Avante" }, + }, + }, +}