Files
LLeMbas-IDE/ide/config/lua/llembas_ide/bars.lua
T
HomerandClaude Fable 5.2 31ede4d8d2 ide: the LLeMbas IDE distribution — one installer, a pinned Neovim, a branded configuration
A new top-level ide/: install.sh places a hash-checked Neovim release, five third-party
plugins each at one pinned commit, the LLeMbas plugin from nvim/, a generated colourscheme
and a launcher, for one user and under its own NVIM_APPNAME. Built in a staging directory,
started there once, then swapped in.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-01 19:49:21 +00:00

36 lines
1.3 KiB
Lua

-- The statusline and the line of open buffers.
local M = {}
local function active()
local s = require("mini.statusline")
local mode, mode_hl = s.section_mode({ trunc_width = 100 })
local git = s.section_git({ trunc_width = 60 })
local diff = s.section_diff({ trunc_width = 80 })
local diagnostics = s.section_diagnostics({ trunc_width = 80 })
local lsp = s.section_lsp({ trunc_width = 100 })
local filename = s.section_filename({ trunc_width = 140 })
local fileinfo = s.section_fileinfo({ trunc_width = 120 })
local llembas, live = require("llembas_ide.llembas").status()
if s.is_truncated(70) then llembas = "" end
return s.combine_groups({
{ hl = mode_hl, strings = { mode } },
{ hl = "MiniStatuslineDevinfo", strings = { git, diff, diagnostics, lsp } },
"%<",
{ hl = "MiniStatuslineFilename", strings = { filename } },
"%=",
{ hl = live and "LLeMbasIdeStatus" or "LLeMbasIdeStatusOff", strings = { (llembas:gsub("%%", "%%%%")) } },
{ hl = "MiniStatuslineFileinfo", strings = { fileinfo } },
{ hl = mode_hl, strings = { "%l:%v" } },
})
end
function M.setup()
require("mini.statusline").setup({
use_icons = false,
content = { active = active },
})
require("mini.tabline").setup({ show_icons = false })
end
return M