adding new ai

This commit is contained in:
Carlos
2025-04-10 08:24:30 -04:00
parent ae0acb574c
commit f561b16806
2 changed files with 56 additions and 0 deletions

View File

@@ -0,0 +1,55 @@
return {
{
"yetone/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 = "http://api.ai.cargdev.io/api/generate",
api_key_name = "CARGDEV_API_KEY", -- reference the ENV VAR below
model = "deepseek-r1:latest",
__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" },
},
},
},
}

View File

@@ -1,6 +1,7 @@
return {
"github/copilot.vim",
lazy = false, -- Force load on startup
enabled = false,
config = function()
vim.g.copilot_no_tab_map = true -- Disable default Tab mapping
vim.api.nvim_set_keymap("i", "<C-l>", 'copilot#Accept("<CR>")', { expr = true, silent = true })