nvim-lua / completion-nvim

A async completion framework aims to provide completion to neovim's built in LSP written in Lua
Apache License 2.0
973 stars 79 forks source link

Correct boolean interpretation for config variables #365

Open baco opened 3 years ago

baco commented 3 years ago

Instead of comparing configuration values read from local config files with integer values 1 or 0, use their boolean interpretation as they can be directly set to v:true or v:false respectively in config files.

Solves #364

vigoux commented 3 years ago

I think the change should be done in get_option so that it returns a boolean if needed, instead of changing the various statements like you did in the first version of the PR.