ziglint icon indicating copy to clipboard operation
ziglint copied to clipboard

Implementation in Emacs

Open jcs090218 opened this issue 1 year ago • 4 comments

First of all, nice tool!

I've integrated this tool to Emacs with flycheck and flymake.

  • https://github.com/flycheck/flycheck-ziglint
  • https://github.com/flymake/flymake-ziglint

I wonder can we pass filename to ziglint? For example:

$ ziglint /path/to/project/src/main.zig

Thanks!

jcs090218 avatar Mar 01 '24 06:03 jcs090218

thank you for the kind words :) yeah that's totally doable

nektro avatar Mar 01 '24 06:03 nektro

just double checked and realized the -file flag already exists 😄

nektro avatar Mar 01 '24 06:03 nektro

When I tried it in Windows, but it doesn't work. 🤔

C:\Users\USERNAME\.zigmod\bin\ziglint.exe -file ./src/foo.zig

Did I do something wrong? BTW, no error/output at all.

jcs090218 avatar Mar 01 '24 07:03 jcs090218

no that's right, I'll double check it soon. I believe its currently blocked on https://github.com/nektro/ziglint/issues/24 which I'll be fixing during the upgrade to zig's imminent 0.12 release. apologies for the delay

nektro avatar Mar 01 '24 07:03 nektro