Skip to content

Commit

Permalink
[docgen] Update docs
Browse files Browse the repository at this point in the history
skip-checks: true
  • Loading branch information
Github Actions committed Oct 7, 2022
1 parent 1bf118f commit 22f7481
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ A replacement for `:mksession` with a better API
- [Setup options](#setup-options)
- [API](#api)
- [setup(config)](#setupconfig)
- [load_extension(name, opts)](#load_extensionname-opts)
- [get_current()](#get_current)
- [detach()](#detach)
- [list(opts)](#listopts)
Expand Down Expand Up @@ -335,6 +336,15 @@ Initialize resession with configuration options
| ------ | ------- | - |
| config | `table` | |

### load_extension(name, opts)

`load_extension(name, opts)` \
Load an extension some time after calling setup()
| Param | Type | Desc |
| ---- | -------- | ----------------------------------- |
| name | `string` | Name of the extension |
| opts | `table` | Configuration options for extension |

### get_current()

`get_current(): nil|string` \
Expand Down
7 changes: 7 additions & 0 deletions doc/resession.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@ setup({config}) *resession.setu
Parameters:
{config} `table`

load_extension({name}, {opts}) *resession.load_extension*
Load an extension some time after calling setup()

Parameters:
{name} `string` Name of the extension
{opts} `table` Configuration options for extension

get_current(): nil|string *resession.get_current*
Get the name of the current session

Expand Down
1 change: 1 addition & 0 deletions doc/tags
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ resession.detach resession.txt /*resession.detach*
resession.get_current resession.txt /*resession.get_current*
resession.list resession.txt /*resession.list*
resession.load resession.txt /*resession.load*
resession.load_extension resession.txt /*resession.load_extension*
resession.nvim resession.txt /*resession.nvim*
resession.save resession.txt /*resession.save*
resession.save_all resession.txt /*resession.save_all*
Expand Down

0 comments on commit 22f7481

Please sign in to comment.