mirror of
https://github.com/He4eT/dotfiles.git
synced 2026-05-04 23:47:23 +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 = {
|
keys = {
|
||||||
{
|
{
|
||||||
'<leader>j',
|
'<leader>j',
|
||||||
":<c-u>lua require('ollama').prompt()<cr>",
|
":Ollama<CR>",
|
||||||
desc = 'ollama prompt',
|
desc = 'ollama prompt',
|
||||||
mode = { 'n', 'v' },
|
mode = { 'v' },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
opts = {
|
opts = {
|
||||||
model = 'mistral',
|
model = 'mistral',
|
||||||
url = 'http://ollama.internal:11434',
|
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