fix: Fixed nvim lualine section function and update to minstral for

llama.cpp
This commit is contained in:
uttarayan21
2024-11-22 13:27:24 +05:30
parent 6cf63c6e0f
commit e3b567c9fc
3 changed files with 24 additions and 17 deletions

2
flake.lock generated
View File

@@ -1815,7 +1815,7 @@
},
"locked": {
"lastModified": 1,
"narHash": "sha256-2CxuQIKuMbth3Z5NG4gvUPa0EZPazSgwOdxbzbfqvwQ=",
"narHash": "sha256-tpoeaZxzGIo1bv/ddxX7qW6RZJEn7kf3ZhnIH4BvJ9o=",
"path": "./neovim",
"type": "path"
},

View File

@@ -74,20 +74,22 @@ in rec {
lualine = {
enable = true;
settings.sections = {
lualine_c =
rawLua
/*
lua
*/
''
function(bufnr)
local opts = { highlight = true }
return require'nvim-navic'.get_location(opts)
end,
cond = function()
return require'nvim-navic'.is_available()
end
'';
lualine_c =
rawLua
/*
lua
*/
''
{
function(bufnr)
local opts = { highlight = true }
return require'nvim-navic'.get_location(opts)
end,
cond = function()
return require'nvim-navic'.is_available()
end
}
'';
};
};

View File

@@ -34,9 +34,14 @@
enable = true;
host = "127.0.0.1";
port = 3000;
# model = builtins.fetchurl {
# sha256 = "61834b88c1a1ce5c277028a98c4a0c94a564210290992a7ba301bbef96ef8eba";
# url = "https://huggingface.co/bartowski/Qwen2.5.1-Coder-7B-Instruct-GGUF/resolve/main/Qwen2.5.1-Coder-7B-Instruct-Q8_0.gguf?download=true";
# };
model = builtins.fetchurl {
sha256 = "61834b88c1a1ce5c277028a98c4a0c94a564210290992a7ba301bbef96ef8eba";
url = "https://huggingface.co/bartowski/Qwen2.5.1-Coder-7B-Instruct-GGUF/resolve/main/Qwen2.5.1-Coder-7B-Instruct-Q8_0.gguf?download=true";
name = "mistral-7b-claude-chat";
sha256 = "03458d74d3e6ed650d67e7800492354e5a8a33aaaeabc80c484e28766814085a";
url = "https://huggingface.co/TheBloke/Mistral-7B-Claude-Chat-GGUF/resolve/main/mistral-7b-claude-chat.Q8_0.gguf?download=true";
};
};
services.nginx.virtualHosts."${config.services.nextcloud.hostName}".listen = [