Fri Sep 27 20:57:57 -03 2024

This commit is contained in:
Felipe Magrassi 2024-09-27 20:57:57 -03:00
parent 3b55b272bf
commit dad3f325a6
1 changed files with 48 additions and 16 deletions

View File

@ -664,6 +664,38 @@ return {
lazy = false,
priority = 1000,
},
{
'nomnivore/ollama.nvim',
dependencies = {
'nvim-lua/plenary.nvim',
},
-- All the user commands added by the plugin
cmd = { 'Ollama', 'OllamaModel', 'OllamaServe', 'OllamaServeStop' },
keys = {
-- Sample keybind for prompt menu. Note that the <c-u> is important for selections to work properly.
{
'<leader>oo',
":<c-u>lua require('ollama').prompt()<cr>",
desc = 'ollama prompt',
mode = { 'n', 'v' },
},
-- Sample keybind for direct prompting. Note that the <c-u> is important for selections to work properly.
{
'<leader>oG',
":<c-u>lua require('ollama').prompt('Generate_Code')<cr>",
desc = 'ollama Generate Code',
mode = { 'n', 'v' },
},
},
---@type Ollama.Config
opts = {
model = "codellama"
},
},
{
'sainnhe/everforest',
lazy = false,