nph icon indicating copy to clipboard operation
nph copied to clipboard

formating long routine definitions breaks folding

Open AmjadHD opened this issue 7 months ago • 1 comments

formating this:

proc getWorkspaceConfiguration*(ls: LanguageServer): Future[NlsConfig] {.async: (raises: []).} =

results in this:

proc getWorkspaceConfiguration*(
    ls: LanguageServer
): Future[NlsConfig] {.async: (raises: []).} =

The closing parens breaks indentations and consequently folding the body of the routine: Image for reference: Image

AmjadHD avatar Apr 11 '25 23:04 AmjadHD

Sounds like something to report to the editor, rather than nph?

arnetheduck avatar May 18 '25 11:05 arnetheduck