Skip to content

Commit 5537287

Browse files
committed
fix: disable Conform for Rust
1 parent 79993c7 commit 5537287

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docs/release-notes/rl-0.8.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,7 @@
346346
- Fix default telescope ignore list entry for '.git/' to properly match
347347
- Add [gitlinker.nvim] plugin to `vim.git.gitlinker-nvim`
348348
- Add [nvim-treesitter-textobjects] plugin to `vim.treesitter.textobjects`
349+
- Fix rustfmt not respecting rustfmt.toml config
349350

350351
[rrvsh](https://github.com/rrvsh):
351352

modules/plugins/languages/rust.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ in {
120120
vim.treesitter.grammars = [cfg.treesitter.package];
121121
})
122122

123-
(mkIf cfg.format.enable {
123+
(mkIf (!cfg.lsp.enable && cfg.format.enable) {
124124
vim.formatter.conform-nvim = {
125125
enable = true;
126126
setupOpts.formatters_by_ft.rust = [cfg.format.type];

0 commit comments

Comments
 (0)