mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-10-20 11:18:33 +02:00
## Description `prepend_args` logic doesn't work as expected, as it appends the extra args rather than prepends them. This works for some linter configurations, but breaks other ones that use `-` as the last argument in the default configuration. ## Related Issue(s) <!-- If this PR fixes any issues, please link to the issue here. - Fixes #<issue_number> --> - Fixes #7104 ## Screenshots N/A ## Testing Manual testing done with some impacted linters (`selene`, `luacheck`): * Args before: * selene: `{ "--display-style", "json", "-" }` * luacheck: `{ "--formatter", "plain", "--codes", "--ranges", "-" }` * Args after: * selene: `{ "--config", "/some/path/selene.toml", "--display-style", "json", "-" }` * luacheck: `{ "--default-config", "/some/path/.luacheckrc", "--formatter", "plain", "--codes", "--ranges", "-" }` ## Checklist - [x] I've read the [CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md) guidelines.