Skip to content

Commit

Permalink
test out one-liner lists
Browse files Browse the repository at this point in the history
This must be done manually, because nixfmt won't "join" lists that are already multi-line.
  • Loading branch information
MattSturgeon committed Dec 6, 2024
1 parent dbfb5f7 commit 65dd7a9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 41 deletions.
26 changes: 4 additions & 22 deletions plugins/by-name/markdown-preview/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,30 +33,12 @@ mkVimPlugin {
];
imports = [
(mkRenamedOptionModule
[
"plugins"
"markdown-preview"
"fileTypes"
]
[
"plugins"
"markdown-preview"
"settings"
"filetypes"
]
[ "plugins" "markdown-preview" "fileTypes" ]
[ "plugins" "markdown-preview" "settings" "filetypes" ]
)
(mkRenamedOptionModule
[
"plugins"
"markdown-preview"
"browserFunc"
]
[
"plugins"
"markdown-preview"
"settings"
"browserfunc"
]
[ "plugins" "markdown-preview" "browserFunc" ]
[ "plugins" "markdown-preview" "settings" "browserfunc" ]
)
];

Expand Down
23 changes: 4 additions & 19 deletions plugins/deprecation.nix
Original file line number Diff line number Diff line change
Expand Up @@ -48,28 +48,13 @@ in
]
) removed)
++ (lib.mapAttrsToList (
old: new:
lib.mkRenamedOptionModule
[
"plugins"
old
]
[
"plugins"
new
]
old: new: lib.mkRenamedOptionModule [ "plugins" old ] [ "plugins" new ]
) renamed)
++ builtins.map (
name:
lib.mkRemovedOptionModule
[
"plugins"
name
"iconsPackage"
]
''
Please use `plugins.web-devicons` or `plugins.mini.modules.icons` with `plugins.mini.mockDevIcons` instead.
''
lib.mkRemovedOptionModule [ "plugins" name "iconsPackage" ] ''
Please use `plugins.web-devicons` or `plugins.mini.modules.icons` with `plugins.mini.mockDevIcons` instead.
''
) iconsPackagePlugins
++ [
(
Expand Down

0 comments on commit 65dd7a9

Please sign in to comment.