Skip to content

Configuring major mode issue #79

Open
@tkossak

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.

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