You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
377 B
17 lines
377 B
local M = {}
|
|
|
|
function M.layout_bind(bind_table)
|
|
return function ()
|
|
local ws = hl.get_active_special_workspace() or hl.get_active_workspace()
|
|
if not ws then
|
|
return
|
|
end
|
|
|
|
local dsp_fun = bind_table[ws.tiled_layout] or bind_table['default']
|
|
if dsp_fun then
|
|
hl.dispatch(dsp_fun)
|
|
end
|
|
end
|
|
end
|
|
|
|
return M
|
|
|