Skip to content

fix(dart): add file name to formatter#6665

Closed
jordyslagter wants to merge 1 commit intoLazyVim:mainfrom
jordyslagter:fix/dart-format
Closed

fix(dart): add file name to formatter#6665
jordyslagter wants to merge 1 commit intoLazyVim:mainfrom
jordyslagter:fix/dart-format

Conversation

@jordyslagter
Copy link

Fix dart_format failing to format because there wasn't a file name included.

Description

I noticed the dart formatter wasn't working when installing the lang.dart extra without adding any of my own configuration. I tested this in a Docker container with a new install of LazyVim and lang.dart as well and the problem happens there as well.
The problem originates from the $FILENAME not being included in the dart format command, this PR adds that and thus fixes the formatting for dart.

Related Issue(s)

Screenshots

Checklist

Fix dart_format failing to format because there wasn't a file name
included.
@github-actions github-actions bot added extras extras-lang size/xs Extra small PR (<3 lines changed) labels Oct 21, 2025
@dpetka2001
Copy link
Contributor

dpetka2001 commented Oct 21, 2025

My suggestion would be the same as #6156.

Just remove lines 23-27. These settings get inherited from conform.nvim upstream and preferably users should change these settings in their personal configuration if they want something different.

@folke
Copy link
Collaborator

folke commented Oct 21, 2025

Agreed, that's just not needed. Remove those lines

@dpetka2001
Copy link
Contributor

Along with this PR, I would also suggest to make a change to Solidity Extra and remove these lines as well on the same precipice

formatters = {
forge_fmt = {
command = "forge",
args = { "fmt" },
},
},

In general it would be a good guideline to avoid overwriting cmd and args about formatters, as they tend to lead to unforeseeable breaking changes that LazyVim has to account for if they do get overwritten in some Extra.

@folke folke closed this in b38de4e Oct 22, 2025
folke pushed a commit that referenced this pull request Oct 23, 2025
🤖 I have created a release *beep* *boop*
---


##
[15.11.0](v15.10.1...v15.11.0)
(2025-10-23)


### Features

* **snacks_picker:** added gai/gao keymaps for calls incoming/outgoing
([b6e48a5](b6e48a5))
* **snacks.picker:** added `<leader>gD` to diff against merge base of
branch/PR
([f0a91d9](f0a91d9))


### Bug Fixes

* **avante:** unset default keymaps
([#6657](#6657))
([e8a1d8b](e8a1d8b))
* **extras:** remove custom formatter opts for dart/solidity. Closes
[#6665](#6665)
([b38de4e](b38de4e))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
NanoBoom pushed a commit to NanoBoom/LazyVim that referenced this pull request Oct 25, 2025
🤖 I have created a release *beep* *boop*
---


##
[15.11.0](LazyVim/LazyVim@v15.10.1...v15.11.0)
(2025-10-23)


### Features

* **snacks_picker:** added gai/gao keymaps for calls incoming/outgoing
([b6e48a5](LazyVim/LazyVim@b6e48a5))
* **snacks.picker:** added `<leader>gD` to diff against merge base of
branch/PR
([f0a91d9](LazyVim/LazyVim@f0a91d9))


### Bug Fixes

* **avante:** unset default keymaps
([#6657](LazyVim/LazyVim#6657))
([e8a1d8b](LazyVim/LazyVim@e8a1d8b))
* **extras:** remove custom formatter opts for dart/solidity. Closes
[#6665](LazyVim/LazyVim#6665)
([b38de4e](LazyVim/LazyVim@b38de4e))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extras extras-lang size/xs Extra small PR (<3 lines changed)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants