mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-22 17:03:31 +02:00
plugins/languages/lint: allow irregular linters
setting `linters.markdownlint-cli.cmd` would genenrate before: `linters.markdownlint-cli.cmd` resulting in an error. after: `linters["markdownlint-cli"]["cmd"]`
This commit is contained in:
parent
34d75943ed
commit
cc9023fb1d
1 changed files with 2 additions and 2 deletions
|
@ -247,7 +247,7 @@ in
|
||||||
propName: propValue:
|
propName: propValue:
|
||||||
optionalString (
|
optionalString (
|
||||||
propValue != null
|
propValue != null
|
||||||
) "__lint.linters.${linter}.${propName} = ${helpers.toLuaObject propValue}"
|
) ''__lint.linters["${linter}"]["${propName}"] = ${helpers.toLuaObject propValue}''
|
||||||
) linterConfig
|
) linterConfig
|
||||||
) cfg.linters
|
) cfg.linters
|
||||||
)
|
)
|
||||||
|
@ -260,7 +260,7 @@ in
|
||||||
let
|
let
|
||||||
linterConfig' = if isString linterConfig then helpers.mkRaw linterConfig else linterConfig;
|
linterConfig' = if isString linterConfig then helpers.mkRaw linterConfig else linterConfig;
|
||||||
in
|
in
|
||||||
"__lint.linters.${customLinter} = ${helpers.toLuaObject linterConfig'}"
|
''__lint.linters["${customLinter}"] = ${helpers.toLuaObject linterConfig'}''
|
||||||
) cfg.customLinters
|
) cfg.customLinters
|
||||||
)
|
)
|
||||||
));
|
));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue