style(toggle): make luals happy

This commit is contained in:
Folke Lemaitre 2024-12-14 08:15:54 +01:00
parent 97542a7d9b
commit ab07ec3ae7
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -13,6 +13,9 @@ M.meta = {
---@class snacks.toggle.Config
---@field icon? string|{ enabled: string, disabled: string }
---@field color? string|{ enabled: string, disabled: string }
---@field map? fun(mode: string|string[], lhs: string, rhs: string|fun(), opts?: vim.keymap.set.Opts)
---@field which_key? boolean
---@field notify? boolean
local defaults = {
map = vim.keymap.set, -- keymap.set function to use
which_key = true, -- integrate with which-key to show enabled/disabled icons and colors