Skip to content
This repository has been archived by the owner on Jul 6, 2021. It is now read-only.

setting boolean variables from lua only work with 1/0 not true/false #72

Open
lukas-reineke opened this issue Nov 6, 2020 · 0 comments

Comments

@lukas-reineke
Copy link

When setting boolean variables from lua, they are not converted to 1/0.
But the code only checks for == 1 etc

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant