docs: docgen

This commit is contained in:
Folke Lemaitre 2024-12-11 22:20:26 +01:00
parent fed1ba44cf
commit ec191b3fe9
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
3 changed files with 12 additions and 0 deletions

View file

@ -23,6 +23,7 @@ M.meta = {
---@class snacks.scope.Config
---@field max_size? number
---@field enabled? boolean
local defaults = {
-- absolute minimum size of the scope.
-- can be less if the scope is a top-level single line scope
@ -56,6 +57,9 @@ local defaults = {
"for_statement",
},
},
-- These keymaps will only be set if the `scope` plugin is enabled.
-- Alternatively, you can set them manually in your config,
-- using the `Snacks.scope.textobject` and `Snacks.scope.jump` functions.
keys = {
---@type table<string, snacks.scope.TextObject|{desc?:string}>
textobject = {