autocomplete and lsp #2772
Replies: 1 comment
-
This question should be asked in the lsp plugin itself. But basically you need to have an lsp for python installed and configured in the plugin. By default, pylsp is configured so you only need to have it installed on your machine (I recommend installing it with pipx) or you could install pyright and configure it in the {
"lsp.server": "python=pyright-langserver"
} I don't know exactly what Pyright's lsp command is, but if you want Microsoft to tell you how to code in Python, feel free to find out. Regarding the ctrl+space key shortcut, it is still used by the plugin, but if there is already a shortcut for these keys, it will not be overwritten but you can force this in the {
"CtrlSpace": "command:lspcompletion"
} |
Beta Was this translation helpful? Give feedback.
-
how I can turn on autocomplete and lsp for python ?
I have both lsp and it's plugin installed .
autocomplete was available using ctrl + space at first but it disabled .
Beta Was this translation helpful? Give feedback.
All reactions