mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-11-10 15:35: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 =
|
stringToLua =
|
||||||
string: nullOnEmpty: if string == "" then if nullOnEmpty then "null" else "" else ''"${string}"'';
|
string: nullOnEmpty: if string == "" then if nullOnEmpty then "null" else "" else ''"${string}"'';
|
||||||
|
|
||||||
|
boolToLua =
|
||||||
|
boolean: if boolean then "true" else "false";
|
||||||
in
|
in
|
||||||
(mkIf tl.enable {
|
(mkIf tl.enable {
|
||||||
vim.lsp.lspconfig.sources.texlab = ''
|
vim.lsp.lspconfig.sources.texlab = ''
|
||||||
|
|
@ -288,9 +291,9 @@ in
|
||||||
build = {
|
build = {
|
||||||
executable = "${build.package}/bin/${build.executable}",
|
executable = "${build.package}/bin/${build.executable}",
|
||||||
args = ${listToLua build.args false},
|
args = ${listToLua build.args false},
|
||||||
forwardSearchAfter = ${toString build.forwardSearchAfter},
|
forwardSearchAfter = ${boolToLua build.forwardSearchAfter},
|
||||||
onSave = ${toString build.onSave},
|
onSave = ${boolToLua build.onSave},
|
||||||
useFileList = ${toString build.useFileList},
|
useFileList = ${boolToLua build.useFileList},
|
||||||
auxDirectory = ${stringToLua build.auxDirectory true},
|
auxDirectory = ${stringToLua build.auxDirectory true},
|
||||||
logDirectory = ${stringToLua build.logDirectory true},
|
logDirectory = ${stringToLua build.logDirectory true},
|
||||||
pdfDirectory = ${stringToLua build.pdfDirectory true},
|
pdfDirectory = ${stringToLua build.pdfDirectory true},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue