mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
plugins/languages: move to by-name
This commit is contained in:
parent
9d323f3ec7
commit
b1d0959bc9
71 changed files with 19 additions and 36 deletions
44
plugins/by-name/zig/default.nix
Normal file
44
plugins/by-name/zig/default.nix
Normal file
|
@ -0,0 +1,44 @@
|
|||
{
|
||||
lib,
|
||||
helpers,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
with helpers.vim-plugin;
|
||||
mkVimPlugin {
|
||||
name = "zig";
|
||||
originalName = "zig.vim";
|
||||
package = "zig-vim";
|
||||
globalPrefix = "zig_";
|
||||
|
||||
maintainers = [ maintainers.GaetanLepage ];
|
||||
|
||||
# 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.mkFlagInt 1 ''
|
||||
This plugin enables automatic code formatting on save by default using zig fmt.
|
||||
To disable it, you can set this option to `0`.
|
||||
'';
|
||||
};
|
||||
|
||||
settingsExample = {
|
||||
fmt_autosave = 0;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue