···89*local comlink = require*(_"comlink"_)
100011*local conn = comlink.connect*(_config_)
1213*local channel = comlink.selected_channel*()
···2425The comlink module is the entrypoint into configuring and scripting comlink.
26This module provides application level API calls.
00000002728*comlink.connect*
29 Accepts a configuration table. This table defines the server
···89*local comlink = require*(_"comlink"_)
1011+*comlink.setup*(_config_)
12+13*local conn = comlink.connect*(_config_)
1415*local channel = comlink.selected_channel*()
···2627The comlink module is the entrypoint into configuring and scripting comlink.
28This module provides application level API calls.
29+30+*comlink.setup*
31+ Accepts a configuration table. This table defines the global application
32+ configuration. The table has the following required fields:
33+34+ - *markread_on_focus*: boolean, whether to update unread indicator on
35+ focus gain
3637*comlink.connect*
38 Accepts a configuration table. This table defines the server
+10
docs/comlink.lua
···5---@class comlink
6local comlink = {}
700000000008---@class ConnectionConfiguration
9---
10---@field server string The server to connect to, eg "chat.sr.ht"
···5---@class comlink
6local comlink = {}
78+---@class Configuration
9+---
10+---@field markread_on_focus boolean When true, the unread indicator will be reset when comlink
11+---regains focus
12+13+---Global configuration
14+---
15+---@param cfg Configuration Comlink global configuration
16+function comlink.setup(cfg) end
17+18---@class ConnectionConfiguration
19---
20---@field server string The server to connect to, eg "chat.sr.ht"