refactor(presets): replace xdg-open with vim.ui.open

Problem: all presets hardcoded `open = { 'xdg-open' }`, making them
Linux-only. The compiler already handles `open = true` via
`vim.ui.open()`, which is cross-platform.

Solution: change all four presets to `open = true`.
This commit is contained in:
Barrett Ruth 2026-03-03 13:33:13 -05:00
parent 0b16ff7178
commit edfe3b6117
Signed by: barrett
GPG key ID: A6C96C9349D2FC81
2 changed files with 8 additions and 8 deletions

View file

@ -34,7 +34,7 @@ describe('presets', function()
end)
it('has open enabled', function()
assert.are.same({ 'xdg-open' }, presets.typst.open)
assert.is_true(presets.typst.open)
end)
end)
@ -73,7 +73,7 @@ describe('presets', function()
end)
it('has open enabled', function()
assert.are.same({ 'xdg-open' }, presets.latex.open)
assert.is_true(presets.latex.open)
end)
end)
@ -115,7 +115,7 @@ describe('presets', function()
end)
it('has open enabled', function()
assert.are.same({ 'xdg-open' }, presets.markdown.open)
assert.is_true(presets.markdown.open)
end)
end)
@ -177,7 +177,7 @@ describe('presets', function()
end)
it('has open enabled', function()
assert.are.same({ 'xdg-open' }, presets.github.open)
assert.is_true(presets.github.open)
end)
end)
end)