mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-01-03 01:25:57 +00:00
Refactored pdfViewer and fixed infrec error
This commit is contained in:
parent
d65c480188
commit
3433bf9071
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