Skip to content
This repository was archived by the owner on Jul 6, 2021. It is now read-only.
This repository was 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

@lukas-reineke

Description

@lukas-reineke

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions