2023-02-20 11:42:13 +01:00
|
|
|
{
|
|
|
|
lib,
|
2024-02-09 14:21:22 +01:00
|
|
|
config,
|
|
|
|
helpers,
|
2023-02-20 11:42:13 +01:00
|
|
|
pkgs,
|
|
|
|
...
|
2024-02-09 14:21:22 +01:00
|
|
|
}:
|
|
|
|
with lib;
|
|
|
|
with helpers.vim-plugin;
|
|
|
|
mkVimPlugin config {
|
|
|
|
name = "zig";
|
|
|
|
description = "zig.vim";
|
|
|
|
package = pkgs.vimPlugins.zig-vim;
|
|
|
|
globalPrefix = "zig_";
|
2021-03-31 13:56:18 +01:00
|
|
|
|
2024-02-09 14:21:22 +01:00
|
|
|
# Possibly add option to disable Treesitter highlighting if this is installed
|
|
|
|
options = {
|
|
|
|
formatOnSave = mkDefaultOpt {
|
|
|
|
type = types.bool;
|
|
|
|
global = "fmt_autosave";
|
|
|
|
description = "Run zig fmt on save";
|
2023-02-20 11:42:13 +01:00
|
|
|
};
|
2024-02-09 14:21:22 +01:00
|
|
|
};
|
|
|
|
}
|