lektra
Lua API
Lua API (click to expand)

Lektra exposes a Lua scripting API under the global lektra table. You can use it in your init.lua to automate actions, bind custom commands, respond to events, and more.

Config file location: ~/.config/lektra/init.lua

Example:

lektra.keymap.set("scroll_down", {"j"})

lektra.cmd.register("my_cmd", function()
    local view = lektra.tabs.active_view()
    if view then view:goto_page(1) end
end, "Jump to first page")

Showing 0 functions