Skip to content
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

Keep short multi-line comments on one line #405

Closed
matt1432 opened this issue Jan 8, 2024 · 1 comment
Closed

Keep short multi-line comments on one line #405

matt1432 opened this issue Jan 8, 2024 · 1 comment

Comments

@matt1432
Copy link

matt1432 commented Jan 8, 2024

I learned recently that syntax highlighting for multi-line string blocks works with treesitter and neovim, so I tried doing it like so:

{
  programs.bash.shellAliases.cp = /*bash*/ "cp -r";
}

And it worked perfectly

However, after formatting my code with alejandra, it always wants to make the comment multi-line which is very unnecessary for my use case:

{
  programs.bash.shellAliases.cp =
    /*
    bash
    */
    "cp -r";
}
@bew
Copy link

bew commented Jan 8, 2024

Duplicate of #366

@matt1432 matt1432 closed this as not planned Won't fix, can't repro, duplicate, stale Jan 9, 2024
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

No branches or pull requests

2 participants