We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3934ca3 commit 525cfc4Copy full SHA for 525cfc4
1 file changed
configuration/.config/nvim/lua/plugins/lualine-nvim-config.lua
@@ -4,4 +4,23 @@ return {
4
"nvim-tree/nvim-web-devicons",
5
},
6
lazy = false, -- load during startup
7
+
8
+ -- Enhance lualine with information about ollama status
9
+ optional = true,
10
+ opts = function(_, opts)
11
+ table.insert(opts.sections.lualine_x, {
12
+ function()
13
+ local status = require("ollama").status()
14
15
+ if status == "IDLE" then
16
+ return "" -- nf-md-robot-outline
17
+ elseif status == "WORKING" then
18
+ return "" -- nf-md-robot
19
+ end
20
+ end,
21
+ cond = function()
22
+ return package.loaded["ollama"] and require("ollama").status() ~= nil
23
24
+ })
25
26
}
0 commit comments