[nvim] Add git and cmp_ai

This commit is contained in:
2025-08-10 13:44:57 -04:00
parent 8c1e2b615f
commit 51c9c6983a
2 changed files with 63 additions and 31 deletions

View File

@@ -0,0 +1,8 @@
return {
{
"tpope/vim-fugitive"
},
{
"lewis6991/gitsigns.nvim"
},
}

View File

@@ -1,10 +1,32 @@
return {
{
"tzachar/cmp-ai",
dependencies = { "nvim-lua/plenary.nvim" },
config = function()
local cmp_ai = require("cmp_ai.config")
cmp_ai:setup({
max_lines = 100,
provider = "Ollama",
provider_options = {
model = "codestral:latest",
auto_unload = false,
},
notify = true,
notify_callback = function(msg)
vim.notify(msg)
end,
run_on_every_keystroke = true,
})
end
},
{
"hrsh7th/nvim-cmp",
dependencies = {
"hrsh7th/cmp-nvim-lsp",
"hrsh7th/cmp-buffer",
"hrsh7th/cmp-path",
"hrsh7th/cmp-cmdline",
"tzachar/cmp-ai",
},
config = function()
local cmp = require("cmp")
@@ -27,8 +49,10 @@ return {
}),
sources = cmp.config.sources({
{ name = "nvim_lsp" },
{ name = "cmp_ai" },
},
{{ name = "buffer"}})
})
end
},
}