ollama setup for neovim

This commit is contained in:
Barak Michener 2024-09-21 13:42:04 -07:00
parent e49b11da27
commit 88ab0c75e4
4 changed files with 58 additions and 12 deletions

View file

@ -1,7 +1,10 @@
require("ollama").setup({
model = "codellama",
url = "http://ollama.ollama.svc.k8s.barakmich.com",
serve = {
on_start = false,
},
model = "codellama:34b",
url = "http://daystrom.home.0b100.net:11434",
serve = {
on_start = false,
},
})
vim.keymap.set("n", "<Leader>,,", ":<c-u>lua require('ollama').prompt()<cr>", { silent = true })
vim.keymap.set("v", "<Leader>,,", ":<c-u>lua require('ollama').prompt()<cr>", { silent = true })