first commit of nvim config

This commit is contained in:
frank
2025-01-30 19:09:26 -05:00
parent 794ce458a6
commit 94b29a3de2
21 changed files with 1535 additions and 0 deletions
+51
View File
@@ -0,0 +1,51 @@
return {
'olimorris/codecompanion.nvim',
dependencies = {
'nvim-lua/plenary.nvim',
'nvim-treesitter/nvim-treesitter',
},
config = {
adapters = {
llama3 = function()
return require('codecompanion.adapters').extend('ollama', {
name = 'llama3', -- Give this adapter a different name to differentiate it from the default ollama adapter
schema = {
model = {
default = 'llama3.1',
},
-- num_ctx = {
-- default = 16384,
-- },
-- num_predict = {
-- default = -1,
-- },
},
})
end,
deepseekr1 = function()
return require('codecompanion.adapters').extend('ollama', {
name = 'deepseekr1', -- Give this adapter a different name to differentiate it from the default ollama adapter
schema = {
model = {
default = 'deepseek-r1',
},
-- num_ctx = {
-- default = 16384,
-- },
-- num_predict = {
-- default = -1,
-- },
},
})
end,
},
strategies = {
chat = {
adapter = 'deepseekr1',
},
inline = {
adapter = 'deepseekr1',
},
},
},
}