mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-11-10 07:25:30 +00:00
Fixed weird nix boolean toString implementation
This commit is contained in:
parent
23f2b22ae7
commit
7744a1a97f
1 changed files with 6 additions and 3 deletions
|
|
@ -279,6 +279,9 @@ in
|
|||
|
||||
stringToLua =
|
||||
string: nullOnEmpty: if string == "" then if nullOnEmpty then "null" else "" else ''"${string}"'';
|
||||
|
||||
boolToLua =
|
||||
boolean: if boolean then "true" else "false";
|
||||
in
|
||||
(mkIf tl.enable {
|
||||
vim.lsp.lspconfig.sources.texlab = ''
|
||||
|
|
@ -288,9 +291,9 @@ in
|
|||
build = {
|
||||
executable = "${build.package}/bin/${build.executable}",
|
||||
args = ${listToLua build.args false},
|
||||
forwardSearchAfter = ${toString build.forwardSearchAfter},
|
||||
onSave = ${toString build.onSave},
|
||||
useFileList = ${toString build.useFileList},
|
||||
forwardSearchAfter = ${boolToLua build.forwardSearchAfter},
|
||||
onSave = ${boolToLua build.onSave},
|
||||
useFileList = ${boolToLua build.useFileList},
|
||||
auxDirectory = ${stringToLua build.auxDirectory true},
|
||||
logDirectory = ${stringToLua build.logDirectory true},
|
||||
pdfDirectory = ${stringToLua build.pdfDirectory true},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue