Skip to content

Conversation

@emil-ke
Copy link

@emil-ke emil-ke commented Oct 3, 2025

Before, I could not exit a mode (like ataraxis). I got an errors like,

Invalid value for option 'cmdheight': expected number, got boolean true.

This is because save_opts() in minimalist.lua coerced numeric options into booleans, and the issue was caused when off() was called. I get no errors after the patch and I can use off() just fine. To fix, I used nvim_get_all_options() to check the option type and store booleans as true/false while leaving numeric and string options untouched, which seems like the sensible, future-proof way to do this.

Before, I could not exit a mode (like ataraxis). I got an errors like, `Invalid value for option 'cmdheight': expected number, got boolean true stack traceback`. This is because save_opts() in minimalist.lua coerced numeric options into booleans, and the issue was caused when off() was called. I get no errors after the patch and I can use off() just fine. I used nvim_get_all_options() to check the option type and store booleans as true/false while leaving unmeric and string options untouched, which seems like the sensible, future-proof way to do this.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant