ci: format

This commit is contained in:
Barrett Ruth 2026-03-05 13:32:28 -05:00
parent e30ca4eb16
commit 9db185f4d4
Signed by: barrett
GPG key ID: A6C96C9349D2FC81
13 changed files with 2252 additions and 52 deletions

View file

@ -292,15 +292,22 @@ return {
},
{
'barrettruth/preview.nvim',
ft = { 'typst', 'tex', 'markdown' },
after = function()
require('preview').setup({
ft = { 'typst', 'tex', 'markdown', 'plantuml' },
before = function()
vim.filetype.add({
extension = { puml = 'plantuml', pu = 'plantuml' },
})
vim.g.preview = {
github = true,
typst = { open = { 'sioyek', '--new-instance' } },
plantuml = true,
mermaid = true,
latex = {
open = { 'sioyek', '--new-instance' },
output = function(ctx)
return 'build/' .. vim.fn.fnamemodify(ctx.file, ':t:r') .. '.pdf'
return ('build/%s.pdf'):format(
vim.fn.fnamemodify(ctx.file, ':t:r')
)
end,
args = function(ctx)
return {
@ -313,8 +320,8 @@ return {
}
end,
},
})
}
end,
keys = { { '<leader>p', '<cmd>Preview watch<cr>' } },
keys = { { '<leader>p', '<cmd>Preview toggle<cr>' } },
},
}