Skip to content

Configuring major mode issue #79

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
tkossak opened this issue Apr 8, 2025 · 0 comments
Open

Configuring major mode issue #79

tkossak opened this issue Apr 8, 2025 · 0 comments

Comments

@tkossak
Copy link

tkossak commented Apr 8, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant