mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
plugins/hmts: migrate to mkNeovimPlugin
This commit is contained in:
parent
ce62cafda3
commit
d0d4c9c367
1 changed files with 9 additions and 19 deletions
|
@ -1,31 +1,21 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
config,
|
config,
|
||||||
pkgs,
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
lib.nixvim.neovim-plugin.mkNeovimPlugin {
|
||||||
cfg = config.plugins.hmts;
|
name = "hmts";
|
||||||
in
|
originalName = "hmts.nvim";
|
||||||
{
|
package = "hmts-nvim";
|
||||||
meta.maintainers = [ lib.maintainers.GaetanLepage ];
|
|
||||||
|
|
||||||
options.plugins.hmts = {
|
maintainers = [ lib.maintainers.GaetanLepage ];
|
||||||
enable = lib.mkEnableOption "hmts.nvim";
|
|
||||||
|
|
||||||
package = lib.mkPackageOption pkgs "hmts.nvim" {
|
callSetup = false;
|
||||||
default = [
|
hasSettings = false;
|
||||||
"vimPlugins"
|
hasConfigAttrs = false;
|
||||||
"hmts-nvim"
|
extraConfig = {
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
|
||||||
warnings = lib.optional (
|
warnings = lib.optional (
|
||||||
!config.plugins.treesitter.enable
|
!config.plugins.treesitter.enable
|
||||||
) "Nixvim: hmts needs treesitter to function as intended";
|
) "Nixvim: hmts needs treesitter to function as intended";
|
||||||
|
|
||||||
extraPlugins = [ cfg.package ];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue