Skip to content

Comments

fix: disable Conform for Rust#900

Merged
NotAShelf merged 2 commits intoNotAShelf:mainfrom
ckoehler:fix-rustfmt
May 17, 2025
Merged

fix: disable Conform for Rust#900
NotAShelf merged 2 commits intoNotAShelf:mainfrom
ckoehler:fix-rustfmt

Conversation

@ckoehler
Copy link
Contributor

I don't think we want Conform to also do autoformatting. I am running into issues where it doesn't respect the rustfmt.toml file and will happily format according to the 2015 edition. The builtin RustFmt command also works and can be set up to autosave, but rustaceanvim includes rust-analyzer which will run rustfmt as well.

All this to say, autoformatting still works without Conform and also doesn't break stuff.

@github-actions
Copy link

github-actions bot commented May 15, 2025

🚀 Live preview deployed from 7a4f813

View it here:

Debug Information

Triggered by: NotAShelf

HEAD at: fix-rustfmt

Reruns: 883

@ckoehler
Copy link
Contributor Author

ckoehler commented May 15, 2025

Ah changelog, standby for that.
EDIT: done.

@ckoehler ckoehler marked this pull request as draft May 15, 2025 18:39
@ckoehler ckoehler marked this pull request as ready for review May 16, 2025 00:21
@horriblename
Copy link
Collaborator

don't delete the formatter config, do this instead:

default = !cfg.lsp.enable && config.vim.languages.enableFormat;

github-actions bot pushed a commit that referenced this pull request May 16, 2025
@ckoehler
Copy link
Contributor Author

don't delete the formatter config, do this instead:

default = !cfg.lsp.enable && config.vim.languages.enableFormat;

Done.

@horriblename
Copy link
Collaborator

uh, I meant change the deafult value of the option (+ add defaultText), leave the config section alone

b762752#diff-ceba2b90515a5fc940fc0dc9d5677f1c27555c890ecd2677ca854effc05164a6R86-R94

github-actions bot pushed a commit that referenced this pull request May 17, 2025
Copy link
Owner

@NotAShelf NotAShelf left a comment

Choose a reason for hiding this comment

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

Two quick nits, looks good to merge afterwards.

github-actions bot pushed a commit that referenced this pull request May 17, 2025
@horriblename
Copy link
Collaborator

LGTM thanks!

@NotAShelf NotAShelf merged commit 7a4f813 into NotAShelf:main May 17, 2025
12 of 14 checks passed
@github-actions
Copy link

✅ Preview has been deleted successfully!

github-actions bot pushed a commit that referenced this pull request May 17, 2025
@github-actions github-actions bot deleted the fix-rustfmt branch July 1, 2025 04:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants