(feat): add avante plugin on neovim

This commit is contained in:
bumpsoo 2025-04-21 05:45:30 +00:00
parent e08ef74fa4
commit ae9a96d0f7
3 changed files with 36 additions and 0 deletions

View file

@ -0,0 +1,30 @@
return {
"yetone/avante.nvim",
event = "VeryLazy",
version = false,
opts = {
provider = "groq",
vendors = {
groq = {
__inherited_from = "openai",
api_key_name = "GROQ_API_KEY",
endpoint = "https://api.groq.com/openai/v1/",
model = "meta-llama/llama-4-maverick-17b-128e-instruct",
max_tokens = 8192,
},
}
},
dependencies = {
"nvim-treesitter/nvim-treesitter",
"stevearc/dressing.nvim",
"nvim-lua/plenary.nvim",
"MunifTanjim/nui.nvim",
{
'MeanderingProgrammer/render-markdown.nvim',
opts = {
file_types = { "markdown", "Avante" },
},
ft = { "markdown", "Avante" },
},
},
}

View file

@ -20,6 +20,7 @@ return {
"yaml", "yaml",
'python', 'python',
"terraform", "terraform",
"markdown",
}, },
}) })
end end

View file

@ -15,6 +15,11 @@ ifdef HOST
--network host --network host
endif endif
ifdef GROQ_API_KEY
RUN_OPTION += \
-e GROQ_API_KEY=${GROQ_API_KEY}
endif
BUILD_OPTION=\ BUILD_OPTION=\
--build-arg USERNAME=$(shell id -un) \ --build-arg USERNAME=$(shell id -un) \
--build-arg UID=$(shell id -u) --build-arg UID=$(shell id -u)