josean-dev / dev-environment-files

2.63k stars 740 forks source link

Nvim Python #27

Closed nikoloskif closed 1 year ago

nikoloskif commented 1 year ago

I apologize for writing here. Your step-by-step guide to Nvim setup is great!!! Could you tell me what and where to add to Nvim settings for working with Python?

lmscunha commented 1 year ago

Hey @nikoloskif, have you tried adding the python LSP in the lspconfig.lua and mason.lua files?

I installed the pylsp listed here.

Defining its configs like this:

lspconfig["pylsp"].setup({
        capabilities = capabilities,
        on_attach = on_attach,
 })

And it's working for me. :)

nikoloskif commented 1 year ago

Hey, @lmscunha . Thank you:)