first commit of nvim config
This commit is contained in:
@@ -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',
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user