Skip to content

Commit 9fa766f

Browse files
committed
Add avante AI coding assistant (not quite working)
1 parent 874c172 commit 9fa766f

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

config/nvim/lua/plugins/ai.lua

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
return {
2+
{
3+
"yetone/avante.nvim",
4+
event = "VeryLazy",
5+
lazy = false,
6+
version = false, -- set this if you want to always pull the latest change
7+
opts = {
8+
-- add any opts here
9+
selector = {
10+
--- @alias avante.SelectorProvider "native" | "fzf_lua" | "mini_pick" | "snacks" | "telescope" | fun(selector: avante.ui.Selector): nil
11+
--- @type avante.SelectorProvider
12+
provider = "fzf",
13+
-- Options override for custom providers
14+
provider_opts = {},
15+
},
16+
},
17+
build = "make",
18+
-- build = "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false" -- for windows
19+
dependencies = {
20+
"stevearc/dressing.nvim",
21+
"nvim-lua/plenary.nvim",
22+
"MunifTanjim/nui.nvim",
23+
"nvim-tree/nvim-web-devicons",
24+
"zbirenbaum/copilot.lua",
25+
{
26+
"HakonHarnes/img-clip.nvim",
27+
event = "VeryLazy",
28+
opts = {
29+
default = {
30+
embed_image_as_base64 = false,
31+
prompt_for_file_name = false,
32+
drag_and_drop = {
33+
insert_mode = true,
34+
},
35+
use_absolute_path = true,
36+
},
37+
},
38+
},
39+
{
40+
"MeanderingProgrammer/render-markdown.nvim",
41+
opts = {
42+
file_types = { "markdown", "Avante" },
43+
},
44+
ft = { "markdown", "Avante" },
45+
},
46+
},
47+
},
48+
}

0 commit comments

Comments
 (0)