stephane-klein / dotfiles

It is my work in progress dotfiles managed by Chezmoi
2 stars 0 forks source link

Setup Python LSP server #50

Open stephane-klein opened 2 years ago

stephane-klein commented 2 years ago

I would like setup Python LSP server, but I don't know if I need choice:

I read Which python lsp is better?

stephane-klein commented 2 years ago

I will test https://github.com/python-lsp/python-lsp-server

stephane-klein commented 2 years ago

https://github.com/stephane-klein/dotfiles/commit/0319768a0961e9ad9d5da0f2acfd358b89355b86

stephane-klein commented 2 years ago

One issue: I don't know where configuration linelength config.

stephane-klein commented 2 years ago

I have this in my setup.cfg:

[flake8]
ignore = E501 W503 W504
max-line-length = 120

but https://github.com/python-lsp/python-lsp-server don't take in account these parameters   🤷‍♂️

stephane-klein commented 2 years ago

I need to read this thread https://www.reddit.com/r/neovim/comments/vz30kb/whats_your_python_editing_setup/

stephane-klein commented 2 years ago

I test https://github.com/Microsoft/pyright

https://github.com/stephane-klein/dotfiles/commit/0d6bbec16d80dc3b9261df08074685f2d7b8778e

stephane-klein commented 2 years ago

My setup is currently unusable, as soon as I tape (, I have 2s of Neovim freeze.

stephane-klein commented 2 years ago

RĂ©flexion : je travaille dans un projet qui utilise flake8.

J'aimerais que ma configuration Neovim puisse :

Je me demande si je peux désactiver les "hints" proposé par pyright :thinking:.

stephane-klein commented 2 years ago

Je viens de poser une question https://old.reddit.com/r/neovim/comments/vz30kb/whats_your_python_editing_setup/inzs7r2/

stephane-klein commented 2 years ago

Je me demande si je peux désactiver les "hints" proposé par pyright 🤔.

En partant de cette doc j'ai essayé :

nvim_lsp['pyright'].setup{
    capabilities = capabilities,
    python = {
        analysis = {
            typeCheckingMode = "off"
        }
    }
}

mais cela ne fonctionne pas.

stephane-klein commented 2 years ago

Je me demande si je peux désactiver les "hints" proposé par pyright 🤔.

mais cela ne fonctionne pas.

Je vais creuser du coté de capabilities :thinking:.

stephane-klein commented 2 years ago

https://github.com/microsoft/pyright/discussions/3929

stephane-klein commented 2 years ago

Ă€ lire https://github.com/jose-elias-alvarez/null-ls.nvim/issues/289

stephane-klein commented 1 year ago

J'ai de grosses latences lors de l'Ă©dition de fichier Python https://old.reddit.com/r/neovim/comments/xicxox/how_do_you_profiling_neovim_to_identify_which/?

stephane-klein commented 1 year ago

Je me demande si je peux désactiver les "hints" proposé par pyright thinking.

En partant de cette doc j'ai essayé :

nvim_lsp['pyright'].setup{
    capabilities = capabilities,
    python = {
        analysis = {
            typeCheckingMode = "off"
        }
    }
}

mais cela ne fonctionne pas.

Je peux consulter les valeurs par défaut ici.

stephane-klein commented 1 year ago

Je me demande si je peux désactiver les "hints" proposé par pyright thinking.

En partant de cette doc j'ai essayé :

nvim_lsp['pyright'].setup{
    capabilities = capabilities,
    python = {
        analysis = {
            typeCheckingMode = "off"
        }
    }
}

mais cela ne fonctionne pas.

Je peux consulter les valeurs par défaut ici.

Fixé par https://github.com/stephane-klein/dotfiles/commit/a6d631743276be7bc442ae6d8432f762484826b1