adding new ai
This commit is contained in:
55
lua/cargdev/plugins/aicargdev.lua
Normal file
55
lua/cargdev/plugins/aicargdev.lua
Normal 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" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
return {
|
return {
|
||||||
"github/copilot.vim",
|
"github/copilot.vim",
|
||||||
lazy = false, -- Force load on startup
|
lazy = false, -- Force load on startup
|
||||||
|
enabled = false,
|
||||||
config = function()
|
config = function()
|
||||||
vim.g.copilot_no_tab_map = true -- Disable default Tab mapping
|
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 })
|
vim.api.nvim_set_keymap("i", "<C-l>", 'copilot#Accept("<CR>")', { expr = true, silent = true })
|
||||||
|
|||||||
Reference in New Issue
Block a user