(feat): add avante plugin on neovim
This commit is contained in:
parent
e08ef74fa4
commit
ae9a96d0f7
3 changed files with 36 additions and 0 deletions
30
.config/nvim/lua/bumpsoo/plugins/avante.lua
Normal file
30
.config/nvim/lua/bumpsoo/plugins/avante.lua
Normal 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" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
@ -20,6 +20,7 @@ return {
|
||||||
"yaml",
|
"yaml",
|
||||||
'python',
|
'python',
|
||||||
"terraform",
|
"terraform",
|
||||||
|
"markdown",
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
|
||||||
5
Makefile
5
Makefile
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue