mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 16:57:55 +00:00
18 lines
440 B
Nix
18 lines
440 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 = helpers.mkPluginPackageOption "nvim-remote-containers" pkgs.vimPlugins.nvim-remote-containers;
|
||
|
};
|
||
|
|
||
|
config = lib.mkIf cfg.enable {
|
||
|
plugins.treesitter.enable = lib.mkDefault true;
|
||
|
extraPlugins = [ cfg.package ];
|
||
|
};
|
||
|
}
|