leader_is_active
On this page
window:leader_is_active()#
Returns true if the Leader Key is active in the window, or false otherwise.
This example shows LEADER in the right status area, and turns the cursor orange,
when the leader is active:
local wakterm = require 'wakterm'
wakterm.on('update-right-status', function(window, pane)
local leader = ''
if window:leader_is_active() then
leader = 'LEADER'
end
window:set_right_status(leader)
end)
return {
leader = { key = 'a', mods = 'CTRL' },
colors = {
compose_cursor = 'orange',
},
}
See also: window:composition_status().