-
Notifications
You must be signed in to change notification settings - Fork 181
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
Cannot setup LSP formatting and treesitter together #516
Comments
I have the same issue and I even don't config the Does |
You're right. Does this PR make it work: #517 ? |
@psibi Unfortunately, it doesn't, I try add modified rust-common.el
@@ -4,6 4,8 @@
;; rust-common code for both prog-mode and tree-sitter one
;;; Code:
(require 'rust-rustfmt)
(defcustom rust-before-save-hook 'rust-before-save-method
"Function for formatting before save."
:type 'function
|
@ccqpein Cool, want to send a PR with your changes ? |
I just gave the PR #519 . cc @lerouxrgd does the PR fix the issue on your side too? |
Hello,
Here is my current config:
Then in rust-mode (when editing a Rust file), the format on save is not happening.
Strangely, it says:
I keep having the same message if I try too change what is in the
:init
and:config
statements.The text was updated successfully, but these errors were encountered: