feat: adding all the services logic on database

This commit is contained in:
Carlos
2025-04-12 12:52:26 -04:00
parent f561b16806
commit 5c4be23141
2 changed files with 39 additions and 10 deletions

View File

@@ -9,9 +9,9 @@ return {
vendors = { vendors = {
cargdev = { cargdev = {
name = "cargdev", -- Optional name = "cargdev", -- Optional
endpoint = "http://api.ai.cargdev.io/api/generate", endpoint = "https://api-ai.cargdev.io/api/generate",
api_key_name = "CARGDEV_API_KEY", -- reference the ENV VAR below api_key_name = "CARGDEV_API_KEY", -- reference the ENV VAR below
model = "deepseek-r1:latest", model = "deepseek-coder:6.7b",
__inherited_from = "ollama", -- ensures compatibility __inherited_from = "ollama", -- ensures compatibility
max_tokens = 8192, max_tokens = 8192,
}, },

View File

@@ -1,12 +1,41 @@
return { return {
"github/copilot.vim", "zbirenbaum/copilot.lua",
lazy = false, -- Force load on startup lazy = false, -- Load at startup
enabled = false, enabled = true,
config = function() config = function()
vim.g.copilot_no_tab_map = true -- Disable default Tab mapping require("copilot").setup({
vim.api.nvim_set_keymap("i", "<C-l>", 'copilot#Accept("<CR>")', { expr = true, silent = true }) panel = {
vim.api.nvim_set_keymap("i", "<C-j>", "copilot#Next()", { expr = true, silent = true }) enabled = true,
vim.api.nvim_set_keymap("i", "<C-k>", "copilot#Previous()", { expr = true, silent = true }) auto_refresh = false,
vim.api.nvim_set_keymap("i", "<C-x>", "copilot#Dismiss()", { expr = true, silent = true }) keymap = {
jump_prev = "[[",
jump_next = "]]",
accept = "<CR>",
refresh = "gr",
open = "<M-CR>",
},
layout = {
position = "bottom", -- | top | left | right | horizontal | vertical
ratio = 0.4,
},
},
suggestion = {
enabled = true,
auto_trigger = true,
debounce = 75,
trigger_on_accept = true,
keymap = {
accept = "<C-l>", -- Accept suggestion
next = "<C-j>", -- Next suggestion
prev = "<C-k>", -- Previous suggestion
dismiss = "<C-x>", -- Dismiss suggestion
},
},
filetypes = {
markdown = true,
["*"] = true, -- Enable for all filetypes
},
copilot_node_command = "node", -- Ensure your system's Node.js is v20+
})
end, end,
} }