Honoring rustfmt. #75
Closed
madelaney
announced in
Announcements
Replies: 2 comments 3 replies
-
🤔 it doesn't seem to be picking up .rustfmt.toml for me, either. |
Beta Was this translation helpful? Give feedback.
3 replies
-
If anyone came across this it was quite a bit of convoluted path. I actually chose not to put all this in rust-analyzer, but make it project specific via toml files.
nvim config: ["rust-analyzer"] = {
cargo = {
features = "all",
},
}, rust-toolchain.toml [toolchain]
channel = "nightly" rustfmt.toml # https://rust-lang.github.io/rustfmt/?version=v1.6.0
# stable
newline_style = "Unix"
# unstable
# imports_granularity = "Crate"
group_imports = "One"
reorder_impl_items = true
reorder_imports = true
reorder_modules = true
unstable_features = true
version = "Two"
wrap_comments = true |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
All,
When using
vim.lsp.buf.format
, the fact that I have a.rustfmt.toml
file seems to be ignored as the formatting does not follow the expected configuration.Do I need to do anything special to for the lsp formatter to respect my config?
Beta Was this translation helpful? Give feedback.
All reactions