Closed nyngwang closed 2 years ago
It seems nvim-lsp configuration problem. I think LSP can disable the completion by config.
https://github.com/python-lsp/python-lsp-server/blob/develop/CONFIGURATION.md
pylsp.plugins.jedi_completion.enabled boolean Enable or disable the plugin. true
I think you need to disable it.
To @Shougo: Many thanks for the link!
@Shougo: May I also ask you where should I put these config settings? Somewhere like the pylsp setup { }
of nvim-lspconfig?
You can set LSP specific config like this. https://github.com/nvim-lua/kickstart.nvim/blob/master/init.lua#L242
Thank you! During the waiting I found this too: https://neovim.discourse.group/t/pylsp-config-is-not-taken-into-account/1846/2?u=nyngwang hope this will help the others who find this.
You can add the client.server_capabilities.completionProvider = false
@hrsh7th: Thank you a lot!
As title. I'm using both
pyright
andpylsp
(both are documented in thenvim-lspconfig
). The reason why I'm using two LSPs for python are:pyright
supports PDM. I want to use PDM.pylsp
supportsvim.lsp.buf.formatting()
, andpyright
does NOT.OK, so here I just want to show the results of
pyright
and get rid of those frompylsp
. So basicallypylsp
is just a formattor. Could you please help?Here is some of my settings I thought it should work:
pylsp:
pyright:
Screenshots: