Skip to content

Commit

Permalink
TEST: reformat with latest nixfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
MattSturgeon committed Sep 9, 2024
1 parent 0f83298 commit ad7e1c9
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 18 deletions.
5 changes: 3 additions & 2 deletions docs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,9 @@ let
];
};

hmOptions = builtins.removeAttrs (lib.evalModules { modules = [ ../wrappers/modules/hm.nix ]; })
.options [ "_module" ];
hmOptions =
builtins.removeAttrs (lib.evalModules { modules = [ ../wrappers/modules/hm.nix ]; }).options
[ "_module" ];

options-json =
(pkgsDoc.nixosOptionsDoc {
Expand Down
5 changes: 2 additions & 3 deletions plugins/by-name/lazygit/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,8 @@ helpers.vim-plugin.mkVimPlugin {
Config file path is evaluated if this value is `1`.
'';

config_file_path = helpers.defaultNullOpts.mkNullable (
with types; either str (listOf str)
) [ ] "Custom config file path or list of custom config file paths.";
config_file_path = helpers.defaultNullOpts.mkNullable (with types; either str (listOf str)) [
] "Custom config file path or list of custom config file paths.";
};

settingsExample = {
Expand Down
5 changes: 2 additions & 3 deletions plugins/by-name/lualine/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -292,9 +292,8 @@ lib.nixvim.neovim-plugin.mkNeovimPlugin {

inactive_winbar = mkEmptySectionOption "Winbar configuration used when inactive.";

extensions = defaultNullOpts.mkListOf (
with lib.types; either str (attrsOf anything)
) [ ] "List of enabled extensions.";
extensions = defaultNullOpts.mkListOf (with lib.types; either str (attrsOf anything)) [
] "List of enabled extensions.";
};

settingsExample = {
Expand Down
5 changes: 2 additions & 3 deletions plugins/by-name/project-nvim/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,8 @@ lib.nixvim.neovim-plugin.mkNeovimPlugin {

ignore_lsp = defaultNullOpts.mkListOf lib.types.str [ ] "Table of lsp clients to ignore by name.";

exclude_dirs =
defaultNullOpts.mkListOf lib.types.str [ ]
"Don't calculate root dir on specific directories.";
exclude_dirs = defaultNullOpts.mkListOf lib.types.str [
] "Don't calculate root dir on specific directories.";

show_hidden = defaultNullOpts.mkBool false "Show hidden files in telescope.";

Expand Down
5 changes: 2 additions & 3 deletions plugins/by-name/vim-matchup/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ with lib;

treesitterIntegration = {
enable = mkEnableOption "treesitter integration";
disable =
helpers.defaultNullOpts.mkListOf types.str [ ]
"Languages for each to disable this module";
disable = helpers.defaultNullOpts.mkListOf types.str [
] "Languages for each to disable this module";

disableVirtualText = helpers.defaultNullOpts.mkBool false ''
Do not use virtual text to highlight the virtual end of a block, for languages without
Expand Down
5 changes: 2 additions & 3 deletions plugins/by-name/which-key/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -473,9 +473,8 @@ lib.nixvim.neovim-plugin.mkNeovimPlugin {
group = defaultNullOpts.mkStr "+" "Symbol prepended to a group.";
ellipsis = defaultNullOpts.mkStr "…" "Symbol used for overflow.";
mappings = defaultNullOpts.mkBool true "Set to false to disable all mapping icons.";
rules = defaultNullOpts.mkNullable (
with types; either (listOf attrs) bool
) [ ] "Icon rules. Set to false to disable all icons.";
rules = defaultNullOpts.mkNullable (with types; either (listOf attrs) bool) [
] "Icon rules. Set to false to disable all icons.";
colors = defaultNullOpts.mkBool true ''
Use the highlights from mini.icons.
Expand Down
2 changes: 1 addition & 1 deletion update-scripts/rust-analyzer/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# This derivation creates a Nix file that describes the Nix module that needs to be instantiated
#
# The create file is of the form:
#
#
# {
# "<rust-analyzer.option.name>" = {
# description = "<option description>";
Expand Down

0 comments on commit ad7e1c9

Please sign in to comment.