diff --git a/nvim-fredrik/lua/plugins/llm-ls.lua b/nvim-fredrik/lua/plugins/llm-ls.lua new file mode 100644 index 00000000..7696221f --- /dev/null +++ b/nvim-fredrik/lua/plugins/llm-ls.lua @@ -0,0 +1,36 @@ +return { + { + + "huggingface/llm.nvim", + dependencies = { + { + "williamboman/mason.nvim", + opts = function(_, opts) + opts.ensure_installed = opts.ensure_installed or {} + vim.list_extend(opts.ensure_installed, { "llm-ls" }) + end, + }, + }, + opts = { + backend = "ollama", + model = "codellama:7b", + accept_keymap = "", + dismiss_keymap = "", + url = "http://localhost:11434/api/generate", + request_body = { + options = { + temperature = 0.2, + top_p = 0.95, + }, + }, + fim = { + enabled = true, + prefix = "", + middle = "", + suffix = "", + }, + context_window = 400, + enable_suggestions_on_startup = true, + }, + }, +}