Skip to content

Configuring major mode issue #79

Description

@tkossak

Hello, I read the docs but still have problems configuring major mode for python. I want to add keybinding: SPC m = u should run command ruff.executeFormat (only for python buffers). How do I do it? I tried different things eg:

    "whichkey.bindingOverrides": [
        {
            "keys": ["m.=.u", "languageId:python"],
            "name": "Format",
            "type": "command",
            "command": "ruff.executeFormat",
        }
    ],

or

    "whichkey.bindingOverrides": [
        {
            "keys": ["m", "languageId:python", "=", "u"],
            "name": "Ruff Format",
            "type": "command",
            "command": "ruff.executeFormat",
        }
    ],

But nothing works - the u / "Ruff format" is not shown in SPC m = submenu for python buffers.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions