From 6f015baf4a4a2ed49f0bcffd544bfebbde2bc63e Mon Sep 17 00:00:00 2001 From: Mora Unie Youer Date: Wed, 16 Jul 2025 14:09:49 +0300 Subject: feat: add SuperCollider component for `lualine` --- lua/config/plugins/ui.lua | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'lua') 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, }, -- cgit v1.2.3-70-g09d2