aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2022-12-01 20:02:11 +0100
committerGitHub <noreply@github.com>2022-12-01 20:02:11 +0100
commit8491ab7eec64e98b7e15b0d586cb71ee32067049 (patch)
tree8fd85d33cf2116881a977eb1de57424464763464
parentfeat(ui): hoist "Installing" and "Failed" package groups to the top (#712) (diff)
downloadmason-8491ab7eec64e98b7e15b0d586cb71ee32067049.tar
mason-8491ab7eec64e98b7e15b0d586cb71ee32067049.tar.gz
mason-8491ab7eec64e98b7e15b0d586cb71ee32067049.tar.bz2
mason-8491ab7eec64e98b7e15b0d586cb71ee32067049.tar.lz
mason-8491ab7eec64e98b7e15b0d586cb71ee32067049.tar.xz
mason-8491ab7eec64e98b7e15b0d586cb71ee32067049.tar.zst
mason-8491ab7eec64e98b7e15b0d586cb71ee32067049.zip
feat(ui): stick cursor to installation log toggle line (#713)
-rw-r--r--lua/mason/ui/components/main/package_list.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/mason/ui/components/main/package_list.lua b/lua/mason/ui/components/main/package_list.lua
index 870fe890..69e3748d 100644
--- a/lua/mason/ui/components/main/package_list.lua
+++ b/lua/mason/ui/components/main/package_list.lua
@@ -208,12 +208,13 @@ local function InstallingPackageComponent(pkg, state)
pkg_state.latest_spawn and p.Comment((" $ %s"):format(pkg_state.latest_spawn)) or p.none "",
},
},
- Ui.StickyCursor { id = ("%s-installing"):format(pkg.spec.name) },
+ Ui.StickyCursor { id = ("%s-installing"):format(pkg.name) },
Ui.Keybind(settings.current.ui.keymaps.cancel_installation, "TERMINATE_PACKAGE_HANDLE", pkg),
Ui.Keybind(settings.current.ui.keymaps.install_package, "INSTALL_PACKAGE", pkg),
Ui.CascadingStyleNode({ "INDENT" }, {
Ui.HlTextNode(pkg_state.is_log_expanded and p.Bold "▼ Displaying full log" or p.muted(tail)),
Ui.Keybind("<CR>", "TOGGLE_INSTALL_LOG", pkg),
+ Ui.StickyCursor { id = ("%s-toggle-install-log"):format(pkg.name) },
}),
Ui.When(pkg_state.is_log_expanded, function()
return Ui.CascadingStyleNode({ "INDENT", "INDENT" }, {