-
Notifications
You must be signed in to change notification settings - Fork 110
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
EditorConfig Support #96
Comments
I would greatly appreciate this as well! |
@ananthakumaran what would be needed for implementing this? |
For each buffer tide will make a configure rpc request to tsserver. This contains formatOptions, which will be used by tsserver for other rpc requests like format etc. Tide already supports tsfmt.json file. https://github.com/ananthakumaran/tide/blob/master/tide.el#L712. Adding editor config support would be similar, the file needs to be parsed and each option needs to be mapped to the corresponding options in the protocol. |
I might try to implement support for this the coming weeks, but I'm not very experienced in elisp or typescript. Would it be sane to require https://github.com/editorconfig/editorconfig-emacs as a prerequisite? So that |
Yes, using a standard implementation is better. |
PRs welcome. |
I think we're 99% of the way there. tide respects (add-hook 'editorconfig-after-apply-functions (defun winny/fix-tide-indentation (props)
(when (and (boundp 'tide-mode) tide-mode)
(tide-command:configure)))) |
This bug also manifests if user manually sets Maybe tide could monitor this var (and reconfigure itself) so it behaves in a unsurprising way in all cases? |
Specifically for the code formatting, integration with editorconfig-emacs would be amazing.
The text was updated successfully, but these errors were encountered: