Open zw963 opened 2 years ago
Try more but still no luck
(defun mint--format-args ()
(append
'("format")
`(,(buffer-file-name))
)
)
(defun mint--format-exit-code (code)
t
;; (when (or (eq code 0) (eq code 1))
;; t
;; )
)
(reformatter-define mint-format
:program "mint"
:args (mint--format-args)
:stdout nil
:input (reformatter-temp-file-in-current-directory "mint")
:exit-code-success-p mint--format-exit-code
)
Does mint format
support reading/writing with stdin/stdout? That's the best solution if possible, and if not, an upstream bug report is advised. Very very few such programs don't support that mode of operation these days.
Does
mint format
support reading/writing with stdin/stdout? That's the best solution if possible, and if not, an upstream bug report is advised. Very very few such programs don't support that mode of operation these days.
Current, mint format
in replace code in file directly, it have one options for this.
(reformatter-define mint-format
:program "mint"
:args '("format" "--stdin")
)
but, the issue is, the mint format --stdin
must be run within the project root to make it work correct, is there any option archive this?
more context, please check this
Thank you
What i said is mint-lang.
https://mint-lang.com/guide/getting-started/tools
Following is command:
I have no idea how to make this command work.
Following is my config:
Thank you.