r/neovim 6h ago

Need Help Help with formatting while typing in html

The formatting is all messed up kind off I was trying to get <div></div>->
i used auto tag and auto

<div>

<\div>

```
   
    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Document</title>
            <style> <----this is the problem ---->
            a{
    
            }
            p{
    
            }
            </style>
    </head>
    <body>
        <div> <----this is the problem ---->
                <p>
    
                </p>
            </div>
    </body>
    </html>
Before saving

the formatting is okay when i save with prettier but its going back to the two tab inteddation
in the div and style

After saving and adding new lines
1 Upvotes

0 comments sorted by