mirror of
https://github.com/He4eT/dotfiles.git
synced 2026-05-04 15:37:22 +00:00
nvim: ollama: add custom prompts
This commit is contained in:
parent
eb4b1e78e3
commit
c4c6d8b4d1
1 changed files with 22 additions and 2 deletions
|
|
@ -136,14 +136,34 @@ require('lazy').setup({
|
|||
keys = {
|
||||
{
|
||||
'<leader>j',
|
||||
":<c-u>lua require('ollama').prompt()<cr>",
|
||||
":Ollama<CR>",
|
||||
desc = 'ollama prompt',
|
||||
mode = { 'n', 'v' },
|
||||
mode = { 'v' },
|
||||
},
|
||||
},
|
||||
opts = {
|
||||
model = 'mistral',
|
||||
url = 'http://ollama.internal:11434',
|
||||
prompts = {
|
||||
Ask_About_Code = false,
|
||||
Simplify_Code = false,
|
||||
Improve_Text = {
|
||||
prompt = "Make this text simple and readable. Respond with improved version of this text: ```$sel```",
|
||||
extract = false,
|
||||
action = "replace",
|
||||
},
|
||||
Modify_Text = {
|
||||
prompt = "Modify this text in the following way: $input\n\n"
|
||||
.. "```$sel```",
|
||||
extract = false,
|
||||
action = "replace",
|
||||
},
|
||||
Use_selection_as_prompt = {
|
||||
prompt = "$sel",
|
||||
extract = false,
|
||||
action = "replace",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue