Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spacemacs Web Mode - Indentation not working as expected

Tags:

I'm trying to get started using Spacemacs for an Elixir/Phoenix web project.

When editing one of my HTML templates (myfile.html.eex), the indentation displayed in Spacemacs is not as expected.

The HTML content is displayed way over to the right of the screen. When I put my cursor onto the line with the HTML, it (temporarily) moves into the right spot. It then moves back over to the right once the cursor leaves the line.

If I access a different file, then come back again, (SPC-TAB SPC-TAB) the formatting is correct.

This behavior is distracting/annoying. Any way to fix it?

Text floating way over to the right: Text floating way over to the right

Cursor over the line, it moves into the correct location: Cursor over the line, it moves into the correct location

Move cursor off the line, it goes back to the wrong spot on the right: Move cursor off the line, it goes back to the wrong spot on the right

Access a different file and come back - everything looks right: Access a different file and come back - everything looks right