fix(nvim): simplify preview.nvim config

This commit is contained in:
Barrett Ruth 2026-03-05 22:36:35 -05:00
parent 1e3d0fa577
commit 5c4fb10596
Signed by: barrett
GPG key ID: A6C96C9349D2FC81
4 changed files with 97 additions and 0 deletions

View file

@ -23,6 +23,12 @@ vim.g.preview = {
'nvim --server /tmp/nvim-preview.sock'
.. [[ --remote-expr "execute('b +%{line} %{input}')"]],
},
output = function(ctx)
return vim.fn.fnamemodify(ctx.file, ':h')
.. '/build/'
.. vim.fn.fnamemodify(ctx.file, ':t:r')
.. '.pdf'
end,
},
}