Lsp: Bind Go To Symbol Definition to Ctrl + Click

Created on 5 Dec 2019  路  4Comments  路  Source: sublimelsp/LSP

Couldn't find this issue anywhere. I just want to bind Go To Symbol Definition to Ctrl + Click, is this possible? It seems the key bindings are only for keyboard shortcuts, not mouse shortcuts.

questioheldebug

Most helpful comment

@jfcherng, thank you, I got it (Default.sublime-mousemap):

[
...
    {
        "button": "button1",
        "count": 1,
        "modifiers": ["ctrl"],
        "press_command": "drag_select",
        "command": "lsp_symbol_definition"
    }
]

All 4 comments

@jfcherng, thank you, I got it (Default.sublime-mousemap):

[
...
    {
        "button": "button1",
        "count": 1,
        "modifiers": ["ctrl"],
        "press_command": "drag_select",
        "command": "lsp_symbol_definition"
    }
]

Good example of how things are documented (see "Mouse map configuration" on https://lsp.readthedocs.io/en/latest/features/) but not findable :)

Maybe we should add ctrl + mouse click as a default shortcut to LSP, so people don't have to hunt down that documentation for that?

Was this page helpful?
0 / 5 - 0 ratings