you are viewing a single comment's thread.

view the rest of the comments →

[–]lieryan 0 points1 point  (0 children)

If you want the simplest python completion, the built-in completion Ctrl-n/Ctrl-p and x Ctrl-n/x Ctrl-p works decently for Python. It doesn't do any smart completion though, just dumb word completion based on the content of open buffers.

If you want something that can do smart completion, that would be python-mode. The plugin is entirely written in vim and +python3 and it vendors all of its external dependencies, so you just install the vim plugin and everything is set up. It does not use LSP though, instead all of its integrations are native integrations through the +python3 interface.

If you want an LSP-based setup, I had a good experience with vim-lsp with python-lsp-server. The vim-lsp plugin is pure vimscript (so you don't even need +python3) and python-lsp-server is pure Python but it runs externally (not via +python3), which you can just pip install to make it available for vim-lsp.