Files
Ivan Isakov 2239177dbb fix(nvim-lint): fix prepend_args logic (#7105)
## 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.
2026-09-08 12:13:50 +02:00
..