From 8e88acd58f840849debac965fcf85cd4b5497ded Mon Sep 17 00:00:00 2001 From: dlond Date: Wed, 30 Jul 2025 22:50:34 +1200 Subject: [PATCH] We good? WE GOOD! --- lua/custom/plugins/avante.lua | 46 +++++++++++++++++++++++++++++++++++ lua/custom/plugins/init.lua | 1 + 2 files changed, 47 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 00000000..ff03f7b9 --- /dev/null +++ b/lua/custom/plugins/avante.lua @@ -0,0 +1,46 @@ +return { + "yetone/avante.nvim", + event = "VeryLazy", + lazy = false, + version = false, -- set this if you want to always pull the latest change + opts = { + -- add any opts here + }, + -- if you want to build from source then do `make BUILD_FROM_SOURCE=true` + build = "make", + -- build = "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false" -- for windows + dependencies = { + "stevearc/dressing.nvim", + "nvim-lua/plenary.nvim", + "MunifTanjim/nui.nvim", + --- The below dependencies are optional, + "hrsh7th/nvim-cmp", -- autocompletion for avante commands and mentions + "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 set this up properly if you have lazy=true + 'MeanderingProgrammer/render-markdown.nvim', + opts = { + file_types = { "markdown", "Avante" }, + }, + ft = { "markdown", "Avante" }, + }, + }, +} \ No newline at end of file diff --git a/lua/custom/plugins/init.lua b/lua/custom/plugins/init.lua index aa6c8637..2650465b 100644 --- a/lua/custom/plugins/init.lua +++ b/lua/custom/plugins/init.lua @@ -3,6 +3,7 @@ -- -- See the kickstart.nvim README for more information return { + { import = 'custom.plugins.avante' }, -- { import = 'custom.plugins.completion' }, { import = 'custom.plugins.debug' }, { import = 'custom.plugins.formatting' },