Compare commits
1 commit
build/nix-
...
refactor/v
| Author | SHA1 | Date | |
|---|---|---|---|
| edfe3b6117 |
2 changed files with 8 additions and 8 deletions
|
|
@ -10,7 +10,7 @@ M.typst = {
|
||||||
output = function(ctx)
|
output = function(ctx)
|
||||||
return (ctx.file:gsub('%.typ$', '.pdf'))
|
return (ctx.file:gsub('%.typ$', '.pdf'))
|
||||||
end,
|
end,
|
||||||
open = { 'xdg-open' },
|
open = true,
|
||||||
}
|
}
|
||||||
|
|
||||||
---@type preview.ProviderConfig
|
---@type preview.ProviderConfig
|
||||||
|
|
@ -26,7 +26,7 @@ M.latex = {
|
||||||
clean = function(ctx)
|
clean = function(ctx)
|
||||||
return { 'latexmk', '-c', ctx.file }
|
return { 'latexmk', '-c', ctx.file }
|
||||||
end,
|
end,
|
||||||
open = { 'xdg-open' },
|
open = true,
|
||||||
}
|
}
|
||||||
|
|
||||||
---@type preview.ProviderConfig
|
---@type preview.ProviderConfig
|
||||||
|
|
@ -43,7 +43,7 @@ M.markdown = {
|
||||||
clean = function(ctx)
|
clean = function(ctx)
|
||||||
return { 'rm', '-f', (ctx.file:gsub('%.md$', '.html')) }
|
return { 'rm', '-f', (ctx.file:gsub('%.md$', '.html')) }
|
||||||
end,
|
end,
|
||||||
open = { 'xdg-open' },
|
open = true,
|
||||||
}
|
}
|
||||||
|
|
||||||
---@type preview.ProviderConfig
|
---@type preview.ProviderConfig
|
||||||
|
|
@ -70,7 +70,7 @@ M.github = {
|
||||||
clean = function(ctx)
|
clean = function(ctx)
|
||||||
return { 'rm', '-f', (ctx.file:gsub('%.md$', '.html')) }
|
return { 'rm', '-f', (ctx.file:gsub('%.md$', '.html')) }
|
||||||
end,
|
end,
|
||||||
open = { 'xdg-open' },
|
open = true,
|
||||||
}
|
}
|
||||||
|
|
||||||
return M
|
return M
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ describe('presets', function()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
it('has open enabled', function()
|
it('has open enabled', function()
|
||||||
assert.are.same({ 'xdg-open' }, presets.typst.open)
|
assert.is_true(presets.typst.open)
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
@ -73,7 +73,7 @@ describe('presets', function()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
it('has open enabled', function()
|
it('has open enabled', function()
|
||||||
assert.are.same({ 'xdg-open' }, presets.latex.open)
|
assert.is_true(presets.latex.open)
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
@ -115,7 +115,7 @@ describe('presets', function()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
it('has open enabled', function()
|
it('has open enabled', function()
|
||||||
assert.are.same({ 'xdg-open' }, presets.markdown.open)
|
assert.is_true(presets.markdown.open)
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
@ -177,7 +177,7 @@ describe('presets', function()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
it('has open enabled', function()
|
it('has open enabled', function()
|
||||||
assert.are.same({ 'xdg-open' }, presets.github.open)
|
assert.is_true(presets.github.open)
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue