diff options
| author | Robert Günzler <r@gnzler.io> | 2026-04-08 13:11:48 +0900 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2026-04-08 13:11:48 +0900 |
| commit | d4620f3ac119263fee90bd819eadaf84fc8d50b7 (patch) | |
| tree | f5268e72a1c0037d29acac699e5d3f4c37be0e6b /.config/nvim/after/ftplugin | |
| parent | 8afe3fa8d88ae56e96f65897935ef508581ac5f7 (diff) | |
*
Automated-commit-by: dots Signed-off-by: Robert Günzler <r@gnzler.io>
Diffstat (limited to '.config/nvim/after/ftplugin')
| -rw-r--r-- | .config/nvim/after/ftplugin/typst.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.config/nvim/after/ftplugin/typst.lua b/.config/nvim/after/ftplugin/typst.lua index e444bd5..a201c00 100644 --- a/.config/nvim/after/ftplugin/typst.lua +++ b/.config/nvim/after/ftplugin/typst.lua @@ -1,6 +1,6 @@ vim.api.nvim_buf_create_user_command(0, 'OpenPdf', function() local path = vim.api.nvim_buf_get_name(0) - vim.system({ 'xdg-open', path:gsub('%.typ$', '.pdf') }) + vim.system({ 'gio', 'open', path:gsub('%.typ$', '.pdf') }) end, { desc = 'typst: open pdf' }) vim.keymap.set('n', '<leader>o', '<cmd>OpenPdf<cr>', { desc = 'typst: open pdf', buffer = 0 }) |