nvf icon indicating copy to clipboard operation
nvf copied to clipboard

ui/colorful-menu-nvim

Open NotAShelf opened this issue 8 months ago • 0 comments

Adds colorful-menu.nvim, which integrates neatly with completion plugins that we already support.

Tested with the following configuration:

	  configuration = {
        vim = {
          languages = {
            enableLSP = true;
            enableFormat = true;
            enableTreesitter = true;
            enableExtraDiagnostics = true;

            # Languages that will be supported in default and maximal configurations.
            nix.enable = true;
            markdown.enable = true;
            rust.enable = true;
          };

          ui.colorful-menu-nvim.enable = true;
          theme = {
            enable = true;
            name = "catppuccin";
            style = "mocha";
          };

          autocomplete.blink-cmp = {
            enable = true;
            setupOpts.completion.menu.draw = {
              # nvim-cmp-like menu drawing
              columns = [
                {
                  "@1" = "label";
                  "@2" = "label_description";
                  gap = 2;
                }

                ["kind_icon" "kind"]
              ];
              components = {
                label.text = lib.generators.mkLuaInline ''
                  function(ctx)
                      return require("colorful-menu").blink_components_text(ctx)
                  end,
                  highlight = function(ctx)
                      return require("colorful-menu").blink_components_highlight(ctx)
                  end
                '';
              };
            };
          };
        };
      }

NotAShelf avatar Apr 01 '25 13:04 NotAShelf