diff options
Diffstat (limited to '')
-rw-r--r-- | lua/config/plugins/extra.lua | 1 | ||||
-rw-r--r-- | lua/config/plugins/ui.lua | 26 |
2 files changed, 27 insertions, 0 deletions
diff --git a/lua/config/plugins/extra.lua b/lua/config/plugins/extra.lua index 1241f6c..bc5cbd1 100644 --- a/lua/config/plugins/extra.lua +++ b/lua/config/plugins/extra.lua @@ -135,6 +135,7 @@ return { local map_expr = scnvim.map_expr scnvim.setup({ + ensure_installed = true, keymaps = { ["<M-CR>"] = { map("editor.send_block", { "i", "n" }), 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, }, |