nixos-config/modules/nixvim/plugins/nvim-remote-containers.nix
Gabriel Arazas 1cd163a397
nixvim/plugins: update plugins package convention
NixVim maintainers and their whiplash decisions. ;p
2024-09-28 19:37:57 +08:00

18 lines
417 B
Nix

{ config, lib, pkgs, helpers,... }:
let
cfg = config.plugins.nvim-remote-containers;
in
{
options.plugins.nvim-remote-containers = {
enable = lib.mkEnableOption "nvim-remote-containers";
package = lib.mkPackageOption pkgs [ "vimPlugins" "nvim-remote-containers" ] { };
};
config = lib.mkIf cfg.enable {
plugins.treesitter.enable = lib.mkDefault true;
extraPlugins = [ cfg.package ];
};
}