ollama settings
This commit is contained in:
parent
9c79f4672b
commit
d581be532d
@ -850,6 +850,20 @@ require('lazy').setup({
|
||||
-- list_models = '<omitted lua function>', -- Retrieves a list of model names
|
||||
debug = false, -- Prints errors and the command which is run.
|
||||
},
|
||||
config = function()
|
||||
require('gen').prompts['Fix_Code'] = {
|
||||
prompt = 'Fix the following code. Only ouput the result in format ```$filetype\n...\n```:\n```$filetype\n$text\n```',
|
||||
replace = true,
|
||||
extract = '```$filetype\n(.-)```',
|
||||
model = 'codellama:latest',
|
||||
}
|
||||
require('gen').prompts['Enhance_Code'] = {
|
||||
prompt = 'Fix the following code. Only ouput the result in format ```$filetype\n...\n```:\n```$filetype\n$text\n```',
|
||||
replace = true,
|
||||
extract = '```$filetype\n(.-)```',
|
||||
model = 'codellama:latest',
|
||||
}
|
||||
end,
|
||||
vim.keymap.set('n', '<leader>lo', vim.cmd.Gen, { desc = '[O]llama AI' }),
|
||||
},
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user