From ae9a96d0f7f26fd20605696d283681112d58b602 Mon Sep 17 00:00:00 2001 From: bumpsoo Date: Mon, 21 Apr 2025 05:45:30 +0000 Subject: [PATCH] (feat): add avante plugin on neovim --- .config/nvim/lua/bumpsoo/plugins/avante.lua | 30 +++++++++++++++++++ .../nvim/lua/bumpsoo/plugins/treesitter.lua | 1 + Makefile | 5 ++++ 3 files changed, 36 insertions(+) create mode 100644 .config/nvim/lua/bumpsoo/plugins/avante.lua diff --git a/.config/nvim/lua/bumpsoo/plugins/avante.lua b/.config/nvim/lua/bumpsoo/plugins/avante.lua new file mode 100644 index 0000000..41bc09f --- /dev/null +++ b/.config/nvim/lua/bumpsoo/plugins/avante.lua @@ -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" }, + }, + }, +} diff --git a/.config/nvim/lua/bumpsoo/plugins/treesitter.lua b/.config/nvim/lua/bumpsoo/plugins/treesitter.lua index c7c2c6f..0c182f0 100644 --- a/.config/nvim/lua/bumpsoo/plugins/treesitter.lua +++ b/.config/nvim/lua/bumpsoo/plugins/treesitter.lua @@ -20,6 +20,7 @@ return { "yaml", 'python', "terraform", + "markdown", }, }) end diff --git a/Makefile b/Makefile index 261e084..911a073 100644 --- a/Makefile +++ b/Makefile @@ -15,6 +15,11 @@ ifdef HOST --network host endif +ifdef GROQ_API_KEY + RUN_OPTION += \ + -e GROQ_API_KEY=${GROQ_API_KEY} +endif + BUILD_OPTION=\ --build-arg USERNAME=$(shell id -un) \ --build-arg UID=$(shell id -u)