plugins/lint: allow configuring linters with special names
This commit is contained in:
parent
577b34ddae
commit
57d393deb5
1 changed files with 2 additions and 2 deletions
|
|
@ -228,7 +228,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
linterConfig' =
|
||||
if builtins.isString linterConfig then lib.nixvim.mkRaw linterConfig else linterConfig;
|
||||
in
|
||||
"__lint.linters.${customLinter} = ${toLuaObject linterConfig'}"
|
||||
''__lint.linters["${customLinter}"] = ${toLuaObject linterConfig'}''
|
||||
) cfg.customLinters
|
||||
)
|
||||
))
|
||||
|
|
@ -241,7 +241,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
propName: propValue:
|
||||
lib.optionalString (
|
||||
propValue != null
|
||||
) "__lint.linters.${linter}.${propName} = ${toLuaObject propValue}"
|
||||
) ''__lint.linters["${linter}"].${propName} = ${toLuaObject propValue}''
|
||||
) linterConfig
|
||||
) cfg.linters
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue