Files
lua-nvim/lua/cargdev/plugins/aicargdev.lua
2025-04-23 19:36:34 -04:00

56 lines
1.7 KiB
Lua

return {
{
"CarGDev/avante.nvim",
event = "VeryLazy",
lazy = false,
version = false, -- Always pull the latest change
opts = {
provider = "cargdev", -- API provider configuration
vendors = {
cargdev = {
name = "cargdev", -- Optional
endpoint = "https://api-ai.cargdev.io/api/generate",
api_key_name = "CARGDEV_API_KEY", -- reference the ENV VAR below
model = "qwen2.5-coder:7b",
__inherited_from = "ollama", -- ensures compatibility
max_tokens = 8192,
},
},
},
-- Optional: Build from source if required
build = "make",
dependencies = {
"nvim-treesitter/nvim-treesitter", -- Syntax highlighting support
"stevearc/dressing.nvim", -- UI elements
"nvim-lua/plenary.nvim", -- Utility library
"MunifTanjim/nui.nvim", -- UI library for modal components
-- Optional dependencies:
"nvim-tree/nvim-web-devicons", -- Icons support
"zbirenbaum/copilot.lua", -- Copilot integration
{
"HakonHarnes/img-clip.nvim", -- Image pasting support
event = "VeryLazy",
opts = {
-- Recommended settings
default = {
embed_image_as_base64 = false,
prompt_for_file_name = false,
drag_and_drop = {
insert_mode = true,
},
use_absolute_path = true, -- For Windows users
},
},
},
{
"MeanderingProgrammer/render-markdown.nvim", -- Render markdown support
opts = {
file_types = { "markdown", "Avante" },
},
ft = { "markdown", "Avante" },
},
},
},
}