Skip to content

Add customization rustic-lsp-check-command#125

Merged
CeleritasCelery merged 1 commit into
emacs-rustic:mainfrom
bcc32:check-command
Apr 7, 2026
Merged

Add customization rustic-lsp-check-command#125
CeleritasCelery merged 1 commit into
emacs-rustic:mainfrom
bcc32:check-command

Conversation

@bcc32

@bcc32 bcc32 commented Mar 25, 2026

Copy link
Copy Markdown
Contributor

This option can be set to "clippy", for example, to have Eglot report
"cargo clippy" diagnostics via Flymake instead of Flycheck.

This option can be set to "clippy", for example, to have Eglot report
"cargo clippy" diagnostics via Flymake instead of Flycheck.
Comment thread rustic-lsp.el
(list :detachedFiles
(vector (file-local-name (file-truename buffer-file-name)))))
(list :check
(list :command rustic-lsp-check-command))))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not use eglot. What the purpose of this change? in the previous code, if the conditions don't match we will just return the empty object. However in the revised version we will always return the :check object. Is that intended?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that is intentional. The :check field specifies the checker command to use. I've made the defcustom's default be the same as rust-analyzers so users shouldn't see any behavior change with this

@CeleritasCelery CeleritasCelery merged commit b6c7e09 into emacs-rustic:main Apr 7, 2026
3 checks passed
@CeleritasCelery

Copy link
Copy Markdown
Contributor

Thanks!

@bcc32 bcc32 deleted the check-command branch April 7, 2026 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants