diff options
| author | William Boman <william@redwill.se> | 2025-04-21 21:17:45 +0200 |
|---|---|---|
| committer | William Boman <william@redwill.se> | 2025-04-21 21:18:28 +0200 |
| commit | 130936b87368e2c37cec013f69b1aa94c6f2fd20 (patch) | |
| tree | 724e4dd808615e0b2d632ca5c7b8b9ec45450751 /lua | |
| parent | fix(ui): fix setting outdated package state (diff) | |
| download | mason-130936b87368e2c37cec013f69b1aa94c6f2fd20.tar mason-130936b87368e2c37cec013f69b1aa94c6f2fd20.tar.gz mason-130936b87368e2c37cec013f69b1aa94c6f2fd20.tar.bz2 mason-130936b87368e2c37cec013f69b1aa94c6f2fd20.tar.lz mason-130936b87368e2c37cec013f69b1aa94c6f2fd20.tar.xz mason-130936b87368e2c37cec013f69b1aa94c6f2fd20.tar.zst mason-130936b87368e2c37cec013f69b1aa94c6f2fd20.zip | |
feat(ui): display current version in header
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/mason/ui/components/header.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lua/mason/ui/components/header.lua b/lua/mason/ui/components/header.lua index 1e5b2f10..0c9ba50a 100644 --- a/lua/mason/ui/components/header.lua +++ b/lua/mason/ui/components/header.lua @@ -2,6 +2,7 @@ local Ui = require "mason-core.ui" local _ = require "mason-core.functional" local p = require "mason.ui.palette" local settings = require "mason.settings" +local version = require "mason.version" ---@param state InstallerUiState return function(state) @@ -12,9 +13,11 @@ return function(state) Ui.HlTextNode { Ui.When(state.view.is_showing_help, { p.header_secondary(" " .. state.header.title_prefix .. " mason.nvim "), + p.header_secondary(version.VERSION .. " "), p.none((" "):rep(#state.header.title_prefix + 1)), }, { p.header " mason.nvim ", + p.header(version.VERSION .. " "), state.view.is_searching and p.Comment " (search mode, press <Esc> to clear)" or p.none "", }), Ui.When(state.view.is_showing_help, { |
