-
Notifications
You must be signed in to change notification settings - Fork 58
Use reformatter.el for zig fmt
#39
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
Comments
Issues with current buffer reformatting which would be solved by using
Due to this, I would suggest that we consider this proposal and weigh the advantages with the disadvantage of having one additional dependency. |
Most of the programming major modes in Emacs do not seem to have explicit code formatting functionality, but rather, packages such as https://github.com/lassik/emacs-format-all-the-code are used. Coupled with LSP support for formatting via zls, is there a need to have explicit formatting support in zig-mode? |
If the Seeing |
I see. I will look into adding this myself, I'm also looking into #13 as that significantly improves interop, but I am in no way an expert elisp hacker ^^. |
I want to add my zig-mode format experience here, given that it's very useful to have hints about my zig code, it doesn't play well with |
Hi @joachimschmidt557 I try your forked version, https://github.com/ziglang/zig-mode/pull/51/files it works amazing, since zls is not very stable now, so I suggest we merge it in master. PS: I guess no one care one more package, besides its author is purcell, master of elisp. |
I'm a long-time Maybe we can follow what rust-mode does, pass stdin to |
See #75: I will merge this PR on the 1st of January 2023. |
zig fmt
zig fmt
https://github.com/purcell/reformatter.el provides an easy interface to provide idiomatic formatting commands. Using this library would make it would be possible to move a lot of the code which deals with
zig fmt
from this package toreformatter.el
. Of course, this means that this mode has one more Elisp package as a dependency.The text was updated successfully, but these errors were encountered: