diff options
author | 2025-07-16 14:09:49 +0300 | |
---|---|---|
committer | 2025-07-16 14:09:49 +0300 | |
commit | 6f015baf4a4a2ed49f0bcffd544bfebbde2bc63e (patch) | |
tree | 277d21eb61b066dd23e05cc5fdbf5508bf23d154 /lua/config/plugins | |
parent | feat: add plugins and settings for SuperCollider (diff) | |
download | neovim-configuration-master.tar.gz neovim-configuration-master.tar.bz2 neovim-configuration-master.tar.lz neovim-configuration-master.tar.xz neovim-configuration-master.tar.zst neovim-configuration-master.zip |
Diffstat (limited to 'lua/config/plugins')
-rw-r--r-- | lua/config/plugins/ui.lua | 26 |
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, }, |