-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Line numbers are now configurable via the gutters setting but apparently can't be changed with the :set command #2206
Comments
Apart from that, there seem to be two things happening here:
|
I can reproduce this. The error comes from this line: helix/helix-term/src/commands/typed.rs Lines 1214 to 1216 in 24f5a47
It looks like we're parsing the arguments
|
Hmm actually on further investigation this looks like the intended behavior of
|
Hi there! Sorry to dig up an old issue, but I believe this is the way to do it in 23.10 at least? This is working for me
|
This seems to work, but only if the list contains exactly zero or one elements. Not sure how to set multiple elements. `:set gutters.layout ["line-numbers", "spacer"] still errors with the "Bad arguments" message. |
This doesn't work because we parse the command input as json but have our own parsing/word splitting. You can use set like this you just need to comeup with the right way to escape it as Mike showed above. Closing in favor of #8853 |
I'd like to be able to toggle line numbers on and off while editing. #1967 added a gutters setting that allows disabling line numbers by simply not including "line-numbers" in the gutters array, which is great. But :set throws an error if I try to set gutters to the referenced values:
:set gutters ["diagnostics"]
Bad arguments. Usage: ':set key field'
The text was updated successfully, but these errors were encountered: