Skip to content

Recognize #: comment syntax in kitty.conf#20

Merged
fladson merged 1 commit intofladson:mainfrom
glacials:main
Jun 8, 2022
Merged

Recognize #: comment syntax in kitty.conf#20
fladson merged 1 commit intofladson:mainfrom
glacials:main

Conversation

@glacials
Copy link
Contributor

@glacials glacials commented Jun 7, 2022

kitty.conf syntactically uses # for comments, but as a style choice uses #: for documentation-only comments.

Because by default (neo)vim only recognizes #, operations like wrapping or combining lines for #: break. This PR fixes these breakages by adding #: as a comment symbol. It also explicitly adds # as a comment symbol, in case it's not in the user's defaults already.

For more info on this (neo)vim behavior see :help comments.

Example of breakage when wrapping lines with gqj.. before this change:

Screen.Recording.2022-06-07.at.12.41.01.mov

Example of correct behavior when wrapping lines with gqj.. after this change:

Screen.Recording.2022-06-07.at.12.43.03.mov

@glacials glacials changed the title Recognize #: comment syntax Recognize #: comment syntax in kitty.conf Jun 7, 2022
@fladson
Copy link
Owner

fladson commented Jun 8, 2022

Thanks for the contribution @glacials !

@fladson fladson merged commit 7db8950 into fladson:main Jun 8, 2022
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.

2 participants