mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-11-10 23:45:31 +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
|
|
@ -21,7 +21,7 @@
|
|||
# when the view command is called.
|
||||
# This is a function that will take in the cfg of its own pdf viewer.
|
||||
# i.e. it will be called as "args cfg.pdfViewer.viewers.${name}"
|
||||
args,
|
||||
argsFunction,
|
||||
...
|
||||
}: let
|
||||
# Inherit the necessary variables available to any module.
|
||||
|
|
@ -59,10 +59,11 @@ in {
|
|||
# Check that the language, overall pdf viewing, and this pdf viewer have been enabled before making any
|
||||
# config.
|
||||
config = mkIf (cfg.enable && viewerCfg.enable) {
|
||||
# vim.languages.tex.pdfViewer.viewers.${name} = {
|
||||
vim.languages.tex.pdfViewer = {
|
||||
inherit name;
|
||||
inherit (viewerCfg) package executable;
|
||||
args = args viewerCfg;
|
||||
args = argsFunction viewerCfg;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue