summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorache <ache@ache.one>2024-09-18 14:42:24 +0200
committerache <ache@ache.one>2024-09-18 14:42:24 +0200
commit091ba35c9ae43117a3bb54fa9584a1a20317193b (patch)
treecdcc28b9adb6a9597bfc475d0ed5ca5b0d729f19
parentAdd some themes (diff)
Remove useless plugins
-rw-r--r--lua/ache/plugins/llm/llm.lua_23
-rw-r--r--lua/ache/plugins/llm/ollama.lua_44
-rw-r--r--lua/ache/plugins/llm/ollamachad.lua_35
-rw-r--r--lua/ache/plugins/scope.lua11
4 files changed, 0 insertions, 113 deletions
diff --git a/lua/ache/plugins/llm/llm.lua_ b/lua/ache/plugins/llm/llm.lua_
deleted file mode 100644
index 6e0e6ff..0000000
--- a/lua/ache/plugins/llm/llm.lua_
+++ /dev/null
@@ -1,23 +0,0 @@
-return {
- "huggingface/llm.nvim",
- enabled = false,
- opts = {
- backend = "ollama",
- model = "codestral:latest",
- url = "http://192.168.1.11:11434/", -- llm-ls uses "/api/generate"
- -- cf https://github.com/ollama/ollama/blob/main/docs/api.md#parameters_doc
- -- Function that print fibonacci numbers:
- -- tec =
-
- request_body = {
- -- Modelfile options for the model you use
- options = {
- temperature = 0.2,
- top_p = 0.95,
- },
- },
- lsp = {
- bin_path = vim.api.nvim_call_function("stdpath", { "data" }) .. "/mason/bin/llm-ls",
- },
- },
-}
diff --git a/lua/ache/plugins/llm/ollama.lua_ b/lua/ache/plugins/llm/ollama.lua_
deleted file mode 100644
index 3cfda80..0000000
--- a/lua/ache/plugins/llm/ollama.lua_
+++ /dev/null
@@ -1,44 +0,0 @@
-return {
- "nomnivore/ollama.nvim",
- enabled = false,
- dependencies = {
- "nvim-lua/plenary.nvim",
- "MunifTanjim/nui.nvim",
- },
-
- -- All the user commands added by the plugin
- cmd = { "Ollama", "OllamaModel" },
-
- 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 = {
- -- your configuration overrides
- url = "https://box.ache.one:1080/ollama",
- prompts = {
- Complete_this = {
- prompt = "$sel",
- input_label = "> ",
- model = "mistral",
- action = "display_replace",
- extract = "$after",
- },
- },
- },
-}
diff --git a/lua/ache/plugins/llm/ollamachad.lua_ b/lua/ache/plugins/llm/ollamachad.lua_
deleted file mode 100644
index 9c1b01e..0000000
--- a/lua/ache/plugins/llm/ollamachad.lua_
+++ /dev/null
@@ -1,35 +0,0 @@
-return {
- "Lommix/ollamachad.nvim",
- enabled = false,
- config = function()
- --- this is the default, you do not need to call setup if you use the default endpoints
- require("ollamachad").setup({
- generate_api_url = "https://box.ache.one:1080/ollama/api/generate",
- chat_api_url = "https://box.ache.one:1080/ollama/api/chat",
- keymap = {
- -- send prompt
- prompt = "<CR>",
- -- close chat
- close = "<Esc>",
- -- clear chat
- clear = "<C-n>",
- -- tab between prompt and chat
- tab = "<Tab>",
- },
- })
-
- -- local chat = require("ollamachad.chat")
- local gen = require("ollamachad.generate")
- local util = require("ollamachad.util")
-
- -- rewrite selected text in visual mode
- vim.keymap.set("v", "<leader>cr", function()
- local instruction = "Improove the following text in its original language: "
- local request = {
- model = "mistral",
- prompt = instruction .. util.read_visiual_lines(),
- }
- gen.prompt(request)
- end, { silent = true, desc = "Rewrite the selected text" })
- end,
-}
diff --git a/lua/ache/plugins/scope.lua b/lua/ache/plugins/scope.lua
deleted file mode 100644
index 4fa3043..0000000
--- a/lua/ache/plugins/scope.lua
+++ /dev/null
@@ -1,11 +0,0 @@
----[
---- Should do something about tabs but I'm not sure.
----]
-return {
- "tiagovla/scope.nvim",
- -- FIXME: Use an other plugin. Doesn't do what I want.
- config = function()
- require("scope").setup({})
- end,
- enable = false,
-}