--- @type LazySpec | LazySpec[]
return {
'chomosuke/typst-preview.nvim',
ft = 'typst', -- Only load for Typst files
version = '1.*',
opts = {}, -- lazy.nvim will implicitly calls `setup {}`
config = function()
require('typst-preview').setup {
-- Setting this true will enable logging debug information to
-- `vim.fn.stdpath 'data' .. '/typst-preview/log.txt'`
debug = false,
-- Custom format string to open the output link provided with %s
-- Example: open_cmd = 'firefox %s -P typst-preview --class typst-preview'
open_cmd = 'zen-browser %s -P typst --class typst',
-- Custom port to open the preview server. Default is random.
-- Example: port = 8000
-- port = 0,
-- Setting this to 'always' will invert black and white in the preview
-- Setting this to 'auto' will invert depending if the browser has enable
-- dark mode
-- Setting this to '{"rest": "