mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-11-10 15:35:30 +00:00
PDF Viewer framework bug fixes and integrated functionallity into texlab lsp implementation
This commit is contained in:
parent
9524d93bd2
commit
95a0125ce0
4 changed files with 42 additions and 38 deletions
|
|
@ -226,31 +226,34 @@ in {
|
|||
|
||||
package = mkOption {
|
||||
type = package;
|
||||
default = pkgs.okular;
|
||||
default = cfg.pdfViewer.package;
|
||||
description = ''
|
||||
The package to use as your PDF viewer.
|
||||
This viewer needs to support Synctex.
|
||||
|
||||
By default it is set to the package of the pdfViewer option.
|
||||
'';
|
||||
};
|
||||
|
||||
executable = mkOption {
|
||||
type = str;
|
||||
default = "okular";
|
||||
default = cfg.pdfViewer.executable;
|
||||
description = ''
|
||||
Defines the executable of the PDF previewer. The previewer needs to support SyncTeX.
|
||||
|
||||
By default it is set to the executable of the pdfViewer option.
|
||||
'';
|
||||
};
|
||||
|
||||
args = mkOption {
|
||||
type = listOf str;
|
||||
default = [
|
||||
"--unique"
|
||||
"file:%p#src:%l%f"
|
||||
];
|
||||
default = cfg.pdfViewer.args;
|
||||
description = ''
|
||||
Defines additional arguments that are passed to the configured previewer to perform the forward search.
|
||||
The placeholders %f, %p, %l will be replaced by the server.
|
||||
|
||||
By default it is set to the args of the pdfViewer option.
|
||||
|
||||
Placeholders:
|
||||
- %f: The path of the current TeX file.
|
||||
- %p: The path of the current PDF file.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue