summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lua/config/plugins/ui.lua26
1 files changed, 26 insertions, 0 deletions
diff --git a/lua/config/plugins/ui.lua b/lua/config/plugins/ui.lua
index e552f0e..7e4f44c 100644
--- a/lua/config/plugins/ui.lua
+++ b/lua/config/plugins/ui.lua
@@ -17,6 +17,32 @@ return {
options = {
theme = "catppuccin",
},
+
+ sections = {
+ lualine_a = { "mode" },
+ lualine_b = { "branch", "diff", "diagnostics" },
+ lualine_c = { "filename" },
+
+ lualine_x = {
+ -- SuperCollider status bar (server status)
+ {
+ function()
+ -- NOTE: for some reason LuaLS doesn't find `gsub` in string o.O
+ ---@diagnostic disable-next-line
+ return require("scnvim.statusline").get_server_status():gsub("%%", "%%%%")
+ end,
+ cond = function()
+ return vim.bo.filetype == "supercollider"
+ end,
+ },
+
+ "filetype",
+ "encoding",
+ "fileformat",
+ },
+ lualine_y = { "progress" },
+ lualine_z = { "location" },
+ },
})
end,
},