From 897dbd76f969a5eeeee7a758a78974be807f6049 Mon Sep 17 00:00:00 2001 From: m3tam3re Date: Tue, 8 Oct 2024 10:49:18 +0200 Subject: [PATCH] nvim changes --- nvim/init.lua | 1 + nvim/lua/custom/plugins/codeium.lua | 18 ------------------ 2 files changed, 1 insertion(+), 18 deletions(-) delete mode 100644 nvim/lua/custom/plugins/codeium.lua diff --git a/nvim/init.lua b/nvim/init.lua index c1dac04..ec75f7c 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -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). diff --git a/nvim/lua/custom/plugins/codeium.lua b/nvim/lua/custom/plugins/codeium.lua deleted file mode 100644 index 55be1ef..0000000 --- a/nvim/lua/custom/plugins/codeium.lua +++ /dev/null @@ -1,18 +0,0 @@ -return { - 'Exafunction/codeium.vim', - config = function() - -- Change '' here to any keycode you like. - vim.keymap.set('i', '', function() - return vim.fn['codeium#Accept']() - end, { expr = true, silent = true }) - vim.keymap.set('i', '', function() - return vim.fn['codeium#CycleCompletions'](1) - end, { expr = true, silent = true }) - vim.keymap.set('i', '', function() - return vim.fn['codeium#CycleCompletions'](-1) - end, { expr = true, silent = true }) - vim.keymap.set('i', '', function() - return vim.fn['codeium#Clear']() - end, { expr = true, silent = true }) - end, -}