Skip to content

Commit

Permalink
Add avante
Browse files Browse the repository at this point in the history
  • Loading branch information
cschindlbeck committed Oct 3, 2024
1 parent 9506e6e commit 4faedd4
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions lua/plugins/avante.lua
Original file line number Diff line number Diff line change
@@ -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 = "<S-CR>",
insert = "<CR>",
},
},
},
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" },
},
},
}

0 comments on commit 4faedd4

Please sign in to comment.