mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
treewide (cleaning): helpers.toLuaObject -> lib.nixvim.toLuaObject
This commit is contained in:
parent
78e295fa41
commit
ec24d496d5
65 changed files with 104 additions and 104 deletions
|
@ -233,7 +233,7 @@ in
|
|||
extraConfigLua =
|
||||
''
|
||||
__lint = require('lint')
|
||||
__lint.linters_by_ft = ${helpers.toLuaObject cfg.lintersByFt}
|
||||
__lint.linters_by_ft = ${lib.nixvim.toLuaObject cfg.lintersByFt}
|
||||
''
|
||||
+ (optionalString (cfg.linters != { }) (
|
||||
concatLines (
|
||||
|
@ -244,7 +244,7 @@ in
|
|||
propName: propValue:
|
||||
optionalString (
|
||||
propValue != null
|
||||
) ''__lint.linters["${linter}"]["${propName}"] = ${helpers.toLuaObject propValue}''
|
||||
) ''__lint.linters["${linter}"]["${propName}"] = ${lib.nixvim.toLuaObject propValue}''
|
||||
) linterConfig
|
||||
) cfg.linters
|
||||
)
|
||||
|
@ -257,7 +257,7 @@ in
|
|||
let
|
||||
linterConfig' = if isString linterConfig then helpers.mkRaw linterConfig else linterConfig;
|
||||
in
|
||||
''__lint.linters["${customLinter}"] = ${helpers.toLuaObject linterConfig'}''
|
||||
''__lint.linters["${customLinter}"] = ${lib.nixvim.toLuaObject linterConfig'}''
|
||||
) cfg.customLinters
|
||||
)
|
||||
));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue