This commit is contained in:
Thomas Avé 2025-02-22 15:18:40 +01:00
parent 338b27ab88
commit e6ed56ade3
3 changed files with 8 additions and 14 deletions

View File

@ -18,23 +18,15 @@ function SysTray(): JSX.Element {
{bind(tray, "items").as((items) =>
items.map((item) => {
if (item.iconThemePath) App.add_icons(item.iconThemePath);
const menu = item.create_menu();
return (
<button
<menubutton
className="systray"
tooltipMarkup={bind(item, "tooltipMarkup")}
onDestroy={() => menu?.destroy()}
onClickRelease={(self) => {
menu?.popup_at_widget(
self,
Gdk.Gravity.SOUTH,
Gdk.Gravity.NORTH,
null,
);
}}>
<icon gIcon={bind(item, "gicon")} className="systray-item" />
</button>
usePopover={false}
actionGroup={bind(item, "actionGroup").as(ag => ["dbusmenu", ag])}
menuModel={bind(item, "menuModel")}>
<icon gicon={bind(item, "gicon")} className="systray-item" />
</menubutton>
);
}),
)}

View File

@ -184,6 +184,7 @@ return {
rust_analyzer = {},
gopls = {},
ruff = {},
ts_ls= {},
}
}
for server, config in pairs(lsp_opts.servers) do

View File

@ -23,6 +23,7 @@ local function get_entries() {
entry=$(realpath "$entry")
fi
if [ -d "$entry" ]; then
echo $entry
fd . "$entry" -t "$file_type"
else
cat "$entry"