Relative Content

Tag Archive for pythonneovimlanguage-server-protocolnvim-lspconfigpython-language-server

How to import symbol under cursor from another Python module using Neovim & LSP

I am a Python developer and would like to use Neovim as my main code editor. I have managed to configure auto-completion, linting and auto-formatting using lspconfig, mason, null-ls, nvim-cmp and other plugins. However, I am still missing one great feature that I used a lot while coding in PyCharm: using the “context actions”, I was able to import a symbol, i.e. a class, function or module, that is currently under my cursor, as shown on the screenshot below: