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

Line up comment tag for multiple line block #424

Open
laoshaw opened this issue Apr 26, 2020 · 1 comment
Open

Line up comment tag for multiple line block #424

laoshaw opened this issue Apr 26, 2020 · 1 comment
Labels

Comments

@laoshaw
Copy link

laoshaw commented Apr 26, 2020

for html when I set:

let g:NERDSpaceDelims = 1                                                       
let g:NERDCompactSexyComs = 0                                                   
let g:NERDDefaultAlign = 'left'                                                 
let g:NERDAltDelims_java = 1                                                    
let g:NERDCustomDelimiters = {                                                  
    \ 'html': { 'left': '<!-- ','right': ' -->' }
\ }

after cs, I got

<!--
    my comment1
    my comment2
    -->

Can I make it align like below:

<!--
  my comment1
  my comment2
-->

C can do this as expected, but not for Custom Delimiters.

@alerque
Copy link
Member

alerque commented Apr 27, 2020

First, don't include the space after/before the delimiters in your config. The SpaceDelims setting is better for controlling that.

Second, to answer your question no I don't think that alignment is possible out of the box. You should be able to edit it pretty easily to do that and we'd be happy to accept a contribution that added a config option to make that a variant style, but I don't think we currently have an option to not indent the closing comment in that style (which wal really designed for languages like C, not HTML ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants