Skip to content

Commit

Permalink
feat(types): add start_presentation option types
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonleelunn committed Jan 10, 2025
1 parent 08950e5 commit 14a1bc4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lua/present/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ local M = {}
---@field presentation_vim_options table?: Table of vim options to set during presentation mode, see :help option-list
---@field separators string[]?: The list of patterns to use to find slide boundaries/titles

---@class present.StartOptions
---@field bufnr number?: Buffer number containing slides to present. Defaults to the current buffer `0`
---@field filepath string?: The path to file containing slides to present. Takes precedence over `buffer_number`

local state = {
config = {
hide_separator_in_title = true,
Expand Down Expand Up @@ -215,6 +219,7 @@ local parse_lines = function(lines)
return slides
end

---@param opts present.StartOptions | nil
M.start_presentation = function(opts)
opts = opts or {}
opts.bufnr = opts.bufnr or 0
Expand Down

0 comments on commit 14a1bc4

Please sign in to comment.