nvim changes

This commit is contained in:
m3tam3re 2024-10-08 10:49:18 +02:00
parent 26087c3248
commit 897dbd76f9
2 changed files with 1 additions and 18 deletions

View File

@ -841,6 +841,7 @@ require('lazy').setup({
end,
-- Function to initialize Ollama
command = function(options)
local body = { model = options.model, stream = true }
return 'curl --silent --no-buffer -X POST http://' .. options.host .. ':' .. options.port .. '/api/chat -d $body'
end,
-- The command for the Ollama service. You can use placeholders $prompt, $model and $body (shellescaped).

View File

@ -1,18 +0,0 @@
return {
'Exafunction/codeium.vim',
config = function()
-- Change '<C-g>' here to any keycode you like.
vim.keymap.set('i', '<C-g>', function()
return vim.fn['codeium#Accept']()
end, { expr = true, silent = true })
vim.keymap.set('i', '<c-;>', function()
return vim.fn['codeium#CycleCompletions'](1)
end, { expr = true, silent = true })
vim.keymap.set('i', '<c-,>', function()
return vim.fn['codeium#CycleCompletions'](-1)
end, { expr = true, silent = true })
vim.keymap.set('i', '<c-x>', function()
return vim.fn['codeium#Clear']()
end, { expr = true, silent = true })
end,
}