Skip to content

Commit 5707f77

Browse files
committed
add avante
1 parent b9d988d commit 5707f77

File tree

2 files changed

+76
-0
lines changed

2 files changed

+76
-0
lines changed

lazy-lock.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,33 @@
11
{
22
"CopilotChat.nvim": { "branch": "main", "commit": "75653259442a8eb895abfc70d7064e07aeb7134c" },
33
"LuaSnip": { "branch": "master", "commit": "03c8e67eb7293c404845b3982db895d59c0d1538" },
4+
"avante.nvim": { "branch": "main", "commit": "c20e4e8f05b79015f1c7a2178da5298e431e58a8" },
45
"blink.cmp": { "branch": "main", "commit": "cb5e346d9e0efa7a3eee7fd4da0b690c48d2a98e" },
56
"conform.nvim": { "branch": "master", "commit": "372fc521f8421b7830ea6db4d6ea3bae1c77548c" },
7+
"copilot.lua": { "branch": "master", "commit": "3680bebcc95dfd6c7509466367e66f6dc64a5140" },
68
"copilot.vim": { "branch": "release", "commit": "8d1e0f86d8aaa64070c080589bc2a516beb4024f" },
9+
"dressing.nvim": { "branch": "master", "commit": "2d7c2db2507fa3c4956142ee607431ddb2828639" },
710
"fidget.nvim": { "branch": "main", "commit": "d9ba6b7bfe29b3119a610892af67602641da778e" },
11+
"fzf-lua": { "branch": "main", "commit": "f8805989fc8f164ea3fab37bdec963add9576964" },
812
"git-blame.nvim": { "branch": "master", "commit": "8503b199edf9a666fe7b1a989cf14e3c26b2eb03" },
913
"gitsigns.nvim": { "branch": "main", "commit": "ee7e50dfbdf49e3acfa416fd3ad3abbdb658582c" },
14+
"img-clip.nvim": { "branch": "main", "commit": "d8b6b030672f9f551a0e3526347699985a779d93" },
1015
"lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" },
1116
"lazydev.nvim": { "branch": "main", "commit": "2367a6c0a01eb9edb0464731cc0fb61ed9ab9d2c" },
1217
"mason-lspconfig.nvim": { "branch": "main", "commit": "1a31f824b9cd5bc6f342fc29e9a53b60d74af245" },
1318
"mason-tool-installer.nvim": { "branch": "main", "commit": "1255518cb067e038a4755f5cb3e980f79b6ab89c" },
1419
"mason.nvim": { "branch": "main", "commit": "fc98833b6da5de5a9c5b1446ac541577059555be" },
1520
"mini.icons": { "branch": "main", "commit": "397ed3807e96b59709ef3292f0a3e253d5c1dc0a" },
1621
"mini.nvim": { "branch": "main", "commit": "05975f387906211745d0aaf996eb7ad3c91b193d" },
22+
"mini.pick": { "branch": "main", "commit": "ebe3dacb352bb054607e5ed0fd461e2251a7a280" },
23+
"nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" },
24+
"nvim-cmp": { "branch": "main", "commit": "b5311ab3ed9c846b585c0c15b7559be131ec4be9" },
1725
"nvim-lspconfig": { "branch": "master", "commit": "8b0f47d851ee5343d38fe194a06ad16b9b9bd086" },
1826
"nvim-treesitter": { "branch": "master", "commit": "684eeac91ed8e297685a97ef70031d19ac1de25a" },
1927
"oil.nvim": { "branch": "master", "commit": "685cdb4ffa74473d75a1b97451f8654ceeab0f4a" },
2028
"plenary.nvim": { "branch": "master", "commit": "857c5ac632080dba10aae49dba902ce3abf91b35" },
29+
"render-markdown.nvim": { "branch": "main", "commit": "b977c94b32afdcadb8e53ba33d5934d1937d4eab" },
30+
"snacks.nvim": { "branch": "main", "commit": "bc0630e43be5699bb94dadc302c0d21615421d93" },
2131
"telescope-fzf-native.nvim": { "branch": "main", "commit": "1f08ed60cafc8f6168b72b80be2b2ea149813e55" },
2232
"telescope-ui-select.nvim": { "branch": "master", "commit": "6e51d7da30bd139a6950adf2a47fda6df9fa06d2" },
2333
"telescope.nvim": { "branch": "master", "commit": "a4ed82509cecc56df1c7138920a1aeaf246c0ac5" },

lua/custom/plugins/init.lua

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,70 @@ return {
5454
},
5555
-- See Commands section for default commands if you want to lazy load on them
5656
},
57+
58+
{
59+
'yetone/avante.nvim',
60+
-- if you want to build from source then do `make BUILD_FROM_SOURCE=true`
61+
-- ⚠️ must add this setting! ! !
62+
build = function()
63+
-- conditionally use the correct build system for the current OS
64+
if vim.fn.has 'win32' == 1 then
65+
return 'powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false'
66+
else
67+
return 'make'
68+
end
69+
end,
70+
event = 'VeryLazy',
71+
version = false, -- Never set this value to "*"! Never!
72+
---@module 'avante'
73+
---@type avante.Config
74+
opts = {
75+
-- add any opts here
76+
-- for exampleprovider = "ollama",
77+
providers = {
78+
ollama = {
79+
endpoint = 'http://127.0.0.1:11434', -- Note that there is no /v1 at the end.
80+
model = 'llama3.2:3b',
81+
},
82+
},
83+
},
84+
dependencies = {
85+
'nvim-lua/plenary.nvim',
86+
'MunifTanjim/nui.nvim',
87+
--- The below dependencies are optional,
88+
'echasnovski/mini.pick', -- for file_selector provider mini.pick
89+
'nvim-telescope/telescope.nvim', -- for file_selector provider telescope
90+
'hrsh7th/nvim-cmp', -- autocompletion for avante commands and mentions
91+
'ibhagwan/fzf-lua', -- for file_selector provider fzf
92+
'stevearc/dressing.nvim', -- for input provider dressing
93+
'folke/snacks.nvim', -- for input provider snacks
94+
'nvim-tree/nvim-web-devicons', -- or echasnovski/mini.icons
95+
'zbirenbaum/copilot.lua', -- for providers='copilot'
96+
{
97+
-- support for image pasting
98+
'HakonHarnes/img-clip.nvim',
99+
event = 'VeryLazy',
100+
opts = {
101+
-- recommended settings
102+
default = {
103+
embed_image_as_base64 = false,
104+
prompt_for_file_name = false,
105+
drag_and_drop = {
106+
insert_mode = true,
107+
},
108+
-- required for Windows users
109+
use_absolute_path = true,
110+
},
111+
},
112+
},
113+
{
114+
-- Make sure to set this up properly if you have lazy=true
115+
'MeanderingProgrammer/render-markdown.nvim',
116+
opts = {
117+
file_types = { 'markdown', 'Avante' },
118+
},
119+
ft = { 'markdown', 'Avante' },
120+
},
121+
},
122+
},
57123
}

0 commit comments

Comments
 (0)