mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-24 17:58:38 +02:00
treewide: Reformat with nixfmt
This commit is contained in:
parent
c6281260dc
commit
62f32bfc71
459 changed files with 28139 additions and 26377 deletions
|
@ -7,32 +7,40 @@
|
|||
}:
|
||||
with lib;
|
||||
with helpers.vim-plugin;
|
||||
mkVimPlugin config {
|
||||
name = "zig";
|
||||
originalName = "zig.vim";
|
||||
defaultPackage = pkgs.vimPlugins.zig-vim;
|
||||
globalPrefix = "zig_";
|
||||
mkVimPlugin config {
|
||||
name = "zig";
|
||||
originalName = "zig.vim";
|
||||
defaultPackage = pkgs.vimPlugins.zig-vim;
|
||||
globalPrefix = "zig_";
|
||||
|
||||
maintainers = [maintainers.GaetanLepage];
|
||||
maintainers = [ maintainers.GaetanLepage ];
|
||||
|
||||
# TODO introduced 2024-03-02: remove 2024-05-02
|
||||
deprecateExtraConfig = true;
|
||||
imports = [
|
||||
(
|
||||
mkRenamedOptionModule
|
||||
["plugins" "zig" "formatOnSave"]
|
||||
["plugins" "zig" "settings" "fmt_autosave"]
|
||||
)
|
||||
];
|
||||
# TODO introduced 2024-03-02: remove 2024-05-02
|
||||
deprecateExtraConfig = true;
|
||||
imports = [
|
||||
(mkRenamedOptionModule
|
||||
[
|
||||
"plugins"
|
||||
"zig"
|
||||
"formatOnSave"
|
||||
]
|
||||
[
|
||||
"plugins"
|
||||
"zig"
|
||||
"settings"
|
||||
"fmt_autosave"
|
||||
]
|
||||
)
|
||||
];
|
||||
|
||||
settingsOptions = {
|
||||
fmt_autosave = helpers.defaultNullOpts.mkBool true ''
|
||||
This plugin enables automatic code formatting on save by default using zig fmt.
|
||||
To disable it, you can set this option to `false`.
|
||||
'';
|
||||
};
|
||||
settingsOptions = {
|
||||
fmt_autosave = helpers.defaultNullOpts.mkBool true ''
|
||||
This plugin enables automatic code formatting on save by default using zig fmt.
|
||||
To disable it, you can set this option to `false`.
|
||||
'';
|
||||
};
|
||||
|
||||
settingsExample = {
|
||||
fmt_autosave = false;
|
||||
};
|
||||
}
|
||||
settingsExample = {
|
||||
fmt_autosave = false;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue