Open lukas-reineke opened 3 years ago
When setting boolean variables from lua, they are not converted to 1/0. But the code only checks for == 1 etc
== 1
This doesn't work
vim.g.diagnostic_enable_virtual_text = true
This works
vim.g.diagnostic_enable_virtual_text = 1
I can make a PR to fix it, but not sure what the proper way to handle this is. Have a util function that checks both 1/0 and true/false?
When setting boolean variables from lua, they are not converted to 1/0. But the code only checks for
== 1
etcThis doesn't work
This works
I can make a PR to fix it, but not sure what the proper way to handle this is. Have a util function that checks both 1/0 and true/false?