File tree Expand file tree Collapse file tree 2 files changed +2
-18
lines changed Expand file tree Collapse file tree 2 files changed +2
-18
lines changed Original file line number Diff line number Diff line change @@ -71,15 +71,7 @@ with lib;
7171 ++ ( optional deprecateExtraOptions (
7272 mkRenamedOptionModule ( basePluginPath ++ [ "extraOptions" ] ) settingsPath
7373 ) )
74- ++ ( map (
75- option :
76- let
77- optionPath = if isString option then [ option ] else option ; # option is already a path (i.e. a list)
78-
79- optionPathSnakeCase = map helpers . toSnakeCase optionPath ;
80- in
81- mkRenamedOptionModule ( basePluginPath ++ optionPath ) ( settingsPath ++ optionPathSnakeCase )
82- ) optionsRenamedToSettings ) ;
74+ ++ ( nixvim . processRenameOptions optionsRenamedToSettings basePluginPath settingsPath ) ;
8375
8476 options . ${ namespace } . ${ name } =
8577 {
Original file line number Diff line number Diff line change @@ -86,15 +86,7 @@ with lib;
8686 ++ ( optional ( deprecateExtraConfig && createSettingsOption ) (
8787 mkRenamedOptionModule ( basePluginPath ++ [ "extraConfig" ] ) settingsPath
8888 ) )
89- ++ ( map (
90- option :
91- let
92- optionPath = if isString option then [ option ] else option ; # option is already a path (i.e. a list)
93-
94- optionPathSnakeCase = map helpers . toSnakeCase optionPath ;
95- in
96- mkRenamedOptionModule ( basePluginPath ++ optionPath ) ( settingsPath ++ optionPathSnakeCase )
97- ) optionsRenamedToSettings ) ;
89+ ++ ( nixvim . processRenameOptions optionsRenamedToSettings basePluginPath settingsPath ) ;
9890
9991 config = mkIf cfg . enable ( mkMerge [
10092 {
You can’t perform that action at this time.
0 commit comments