mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-21 19:25:13 +02:00
plugins/treesitter: move to by-name
This commit is contained in:
parent
8815180c62
commit
4491ce4db2
18 changed files with 0 additions and 8 deletions
33
plugins/by-name/hmts/default.nix
Normal file
33
plugins/by-name/hmts/default.nix
Normal file
|
@ -0,0 +1,33 @@
|
|||
{
|
||||
lib,
|
||||
helpers,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.plugins.hmts;
|
||||
in
|
||||
{
|
||||
meta.maintainers = [ maintainers.GaetanLepage ];
|
||||
|
||||
options.plugins.hmts = {
|
||||
enable = mkEnableOption "hmts.nvim";
|
||||
|
||||
package = lib.mkPackageOption pkgs "hmts.nvim" {
|
||||
default = [
|
||||
"vimPlugins"
|
||||
"hmts-nvim"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
warnings = 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