You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 6, 2024. It is now read-only.
Tried following the example given to have nvim open pdfs in zathura instead of binary form but nothing happens,expect from nvim opening the pdf in binary.
Am I doing something incorrectly or am I completely misunderstanding how this feature of the plugin works?
require("filetype").setup({
function_extensions= {
["pdf"] =function()
vim.bo.filetype="pdf"-- Open in PDF viewer automaticallyvim.fn.jobstart("zathura " ..'"' ..vim.fn.expand("%") ..'"')
end,
},
})
Running the command from the opened buffer works fine. :lua vim.fn.jobstart("zathura " .. '"' .. vim.fn.expand("%") .. '"')
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Tried following the example given to have
nvim
open pdfs inzathura
instead of binary form but nothing happens,expect fromnvim
opening the pdf in binary.Am I doing something incorrectly or am I completely misunderstanding how this feature of the plugin works?
Running the command from the opened buffer works fine.
:lua vim.fn.jobstart("zathura " .. '"' .. vim.fn.expand("%") .. '"')
The text was updated successfully, but these errors were encountered: