mirror of
https://github.com/He4eT/dotfiles.git
synced 2026-05-04 23:47:23 +00:00
nvim: ollama: normal mode keybindings
This commit is contained in:
parent
c4c6d8b4d1
commit
27cccbce30
1 changed files with 8 additions and 2 deletions
|
|
@ -137,13 +137,19 @@ require('lazy').setup({
|
||||||
{
|
{
|
||||||
'<leader>j',
|
'<leader>j',
|
||||||
":Ollama<CR>",
|
":Ollama<CR>",
|
||||||
desc = 'ollama prompt',
|
desc = 'Ollama Menu',
|
||||||
mode = { 'v' },
|
mode = { 'v' },
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
'<leader>j',
|
||||||
|
":lua require('ollama').prompt('Generate_Code')<cr>",
|
||||||
|
desc = 'Ollama Code Generation',
|
||||||
|
mode = { 'n' },
|
||||||
|
},
|
||||||
},
|
},
|
||||||
opts = {
|
opts = {
|
||||||
model = 'mistral',
|
model = 'mistral',
|
||||||
url = 'http://ollama.internal:11434',
|
url = 'http://ollama.internal:11434', -- see /etc/hosts
|
||||||
prompts = {
|
prompts = {
|
||||||
Ask_About_Code = false,
|
Ask_About_Code = false,
|
||||||
Simplify_Code = false,
|
Simplify_Code = false,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue