mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +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,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.plugins.hmts;
|
||||
in
|
||||
{
|
||||
meta.maintainers = [ lib.maintainers.GaetanLepage ];
|
||||
lib.nixvim.neovim-plugin.mkNeovimPlugin {
|
||||
name = "hmts";
|
||||
originalName = "hmts.nvim";
|
||||
package = "hmts-nvim";
|
||||
|
||||
options.plugins.hmts = {
|
||||
enable = lib.mkEnableOption "hmts.nvim";
|
||||
maintainers = [ lib.maintainers.GaetanLepage ];
|
||||
|
||||
package = lib.mkPackageOption pkgs "hmts.nvim" {
|
||||
default = [
|
||||
"vimPlugins"
|
||||
"hmts-nvim"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
callSetup = false;
|
||||
hasSettings = false;
|
||||
hasConfigAttrs = false;
|
||||
extraConfig = {
|
||||
warnings = lib.optional (
|
||||
!config.plugins.treesitter.enable
|
||||
) "Nixvim: hmts needs treesitter to function as intended";
|
||||
|
||||
extraPlugins = [ cfg.package ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue