--wip-- [skip ci]

This commit is contained in:
Filippo Berto 2025-01-26 19:39:50 +01:00
parent 62497d4584
commit 598cbb4750
4 changed files with 18 additions and 4 deletions

View file

@ -1,4 +1,4 @@
{ pkgs, ... }:
{ pkgs, nixosConfig, ... }:
let
vp = pkgs.vimPlugins;
in
@ -403,8 +403,19 @@ in
plugin = vp.ollama-nvim;
type = "lua";
config = ''
function readAll(file)
local f = assert(io.open(file, "rb"))
local content = f:read("*all")
f:close()
return content
end
local url = readAll("${nixosConfig.age.secrets.ollama.path}")
print(vim.inspect(url))
local ollama = require("ollama")
ollama:setup({
url = url,
model = "codegemma:7b"
})
'';