mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-22 08:53:28 +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:
|
||||
optionalString (
|
||||
propValue != null
|
||||
) "__lint.linters.${linter}.${propName} = ${helpers.toLuaObject propValue}"
|
||||
) ''__lint.linters["${linter}"]["${propName}"] = ${helpers.toLuaObject propValue}''
|
||||
) linterConfig
|
||||
) cfg.linters
|
||||
)
|
||||
|
@ -260,7 +260,7 @@ in
|
|||
let
|
||||
linterConfig' = if isString linterConfig then helpers.mkRaw linterConfig else linterConfig;
|
||||
in
|
||||
"__lint.linters.${customLinter} = ${helpers.toLuaObject linterConfig'}"
|
||||
''__lint.linters["${customLinter}"] = ${helpers.toLuaObject linterConfig'}''
|
||||
) cfg.customLinters
|
||||
)
|
||||
));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue