{ lib, ... }:
lib.nixvim.plugins.mkNeovimPlugin {
  name = "visual-whitespace";
  package = "visual-whitespace-nvim";
  description = "Display white space characters in visual mode, like VSCode's `renderWhitespace: selection`.";

  maintainers = [ lib.maintainers.khaneliman ];

  settingsExample = {
    enabled = true;
    match_types = {
      space = true;
      tab = true;
      nbsp = true;
      lead = true;
      trail = true;
    };
  };
}
