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": { "locked": {
"lastModified": 1, "lastModified": 1,
"narHash": "sha256-2CxuQIKuMbth3Z5NG4gvUPa0EZPazSgwOdxbzbfqvwQ=", "narHash": "sha256-tpoeaZxzGIo1bv/ddxX7qW6RZJEn7kf3ZhnIH4BvJ9o=",
"path": "./neovim", "path": "./neovim",
"type": "path" "type": "path"
}, },

View File

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

View File

@@ -34,9 +34,14 @@
enable = true; enable = true;
host = "127.0.0.1"; host = "127.0.0.1";
port = 3000; 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 { model = builtins.fetchurl {
sha256 = "61834b88c1a1ce5c277028a98c4a0c94a564210290992a7ba301bbef96ef8eba"; name = "mistral-7b-claude-chat";
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"; 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 = [ services.nginx.virtualHosts."${config.services.nextcloud.hostName}".listen = [