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

Indentation with heredocs is less than ideal. #86

Closed
mattdeboard opened this issue Aug 19, 2014 · 3 comments · Fixed by #222
Closed

Indentation with heredocs is less than ideal. #86

mattdeboard opened this issue Aug 19, 2014 · 3 comments · Fixed by #222

Comments

@mattdeboard
Copy link
Contributor

Indentation is not where I want it for @doc @moduledoc and ~s syntax.

When pressing enter after a """, I want the cursor to align with @doc:

defmodule Foo.Bar do
  @moduledoc """
  X <--- cursor should align here automatically
  X <--- ditto
  """ # <-- ditto

Right now the cursor just goes to the beginning of the line (column 0) which is annoying. Thankfully however it can be manually aligned without interference from any auto-indentation busy-bodying.

@mattdeboard
Copy link
Contributor Author

Syntax highlighting portion of this has been resolved.

@mattdeboard mattdeboard changed the title Heredocs are completely unsupported Indentation with heredocs is less than ideal. Aug 19, 2014
@whatyouhide
Copy link

Any news on the indentation of heredocs?

@mattdeboard
Copy link
Contributor Author

Related to #203

J3RN pushed a commit to J3RN/emacs-elixir that referenced this issue Apr 24, 2021
J3RN pushed a commit to J3RN/emacs-elixir that referenced this issue Apr 24, 2021
…s#86)

Since the server is using didSave notification, it needs to specifically ask for
it in the server capabilities. In VS Code it works fine without this, because
the editor sends the notification regardless of what server advertises. However,
other editors, such as Emacs with lsp-mode, break without this config.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants