{ config, pkgs, lib, ... }: with lib; let cfg = config.plugins.intellitab; helpers = import ../helpers.nix { inherit lib; }; defs = import ../plugin-defs.nix { inherit pkgs; }; in { options = { plugins.intellitab = { enable = mkEnableOption "intellitab.nvim"; package = helpers.mkPackageOption "intellitab.nvim" defs.intellitab-nvim; }; }; config = mkIf cfg.enable { extraPlugins = [ cfg.package ]; maps.insert."" = "lua require([[intellitab]]).indent()"; plugins.treesitter = { indent = true; }; }; }