mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-11-10 15:35:30 +00:00
Refactored pdfViewer and fixed infrec error
This commit is contained in:
parent
8384e388c2
commit
664b27cb2c
12 changed files with 194 additions and 430 deletions
|
|
@ -44,6 +44,7 @@ in {
|
|||
`vim.g.tex_flavor = <flavor>` line from your lua config entirely
|
||||
(unless you manually set it elsewhere of course).
|
||||
'';
|
||||
|
||||
flavor = mkOption {
|
||||
type = enum [
|
||||
"plaintex"
|
||||
|
|
@ -71,7 +72,7 @@ in {
|
|||
config = mkIf cfg.enable (mkMerge [
|
||||
# Extra Lua config options
|
||||
(mkIf cfg.extraOpts.texFlavor.enable {
|
||||
vim.globals.tex_flavor = "${cfg.extraOpts.texFlavor.flavor}";
|
||||
vim.globals.tex_flavor = lib.mkDefault "${cfg.extraOpts.texFlavor.flavor}";
|
||||
})
|
||||
]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue