{ pkgs
, lib
, config
, ...
}:
with lib;
with builtins; let
  cfg = config.customNeovim.plugins.lualine;
in
{
  options.customNeovim.plugins.lualine = {
    enable = mkEnableOption "Enable lualine";
  };

  config = mkIf cfg.enable {
    customNeovim.installedPlugins = [
      "lualine"
    ];

    customNeovim.configRC = [
      {
        priority = 1;
        content =
          # INIT-LUA
          ''
            require('lualine').setup {
                options = {
                    icons_enabled = false,
                    theme = 'auto',
                    component_separators = '|',
                    section_separators = "",
                },
            }
          '';
      }
    ];
  };
}
