1-- char_counter.lua 2-- Shows a live character count in the composer help bar. 3 4local matcha = require("matcha") 5 6matcha.on("composer_updated", function(state) 7 matcha.set_status("composer", state.body_len .. " chars") 8end)