{
  plugins.cmp = {
    enable = true;
    autoEnableSources = true;
    settings = {
      sources = [
        { name = "nvim_lsp"; }
        { name = "path"; }
        { name = "buffer"; }
      ];

      mapping = {
        "<CR>" = "cmp.mapping.confirm({ select = true })";
        "<Tab>" = "cmp.mapping(cmp.mapping.select_next_item({'i', 's'}))";
        "<S-Tab>" = "cmp.mapping(cmp.mapping.select_prev_item({'i', 's'}))";
      };
    };
  };
}
