fix(nvim): simplify preview.nvim config
This commit is contained in:
parent
1e3d0fa577
commit
5c4fb10596
4 changed files with 97 additions and 0 deletions
|
|
@ -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,
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue