summary refs log tree commit diff
path: root/.config/nvim/after/ftplugin
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.config/nvim/after/ftplugin/typst.lua2
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 })