Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Potentially) install pyright as the default language server #123

Open
JAS-lzn opened this issue Oct 15, 2023 · 3 comments
Open

(Potentially) install pyright as the default language server #123

JAS-lzn opened this issue Oct 15, 2023 · 3 comments

Comments

@JAS-lzn
Copy link
Contributor

JAS-lzn commented Oct 15, 2023

Pylance by nature of the agressive ToS Microsoft bakes into it, does not always work in all scenarios (eg, codium, neoVIM).

As such, it may be advantageous to use the OSS package Pyright to increase compatibility with more development ecosystems.

I believe this is standard practice in the neoVIM community although, as a degenerate VSCodium user, I can't say with any real certainty.

@HakierGrzonzo , you use neoVIM right? how do you handle python support for python?

@HakierGrzonzo
Copy link
Collaborator

@JAS-lzn neovim has many elaborate ways of managing LSP servers (for example pyright). I use Mason.

I do not install LSP servers per project or even system wide, neovim manages their installation and keeping them up to date.

The way most neovim users, that use m, (that being me) use m is outside of the devcontainer. Also the devcontainer.json file is VS Code specific and ignored by neovim itself.

However, this is a consideration for VS Codium users, as many linux distributions ship it instead of the official VS code binary. It will happily run devcontainer projects, but further investigation is required. It may fail to install it or Microsoft may fail to block it.

@JAS-lzn
Copy link
Contributor Author

JAS-lzn commented Oct 15, 2023

@JAS-lzn neovim has many elaborate ways of managing LSP servers (for example pyright). I use Mason.

I do not install LSP servers per project or even system wide, neovim manages their installation and keeping them up to date.

The way most neovim users, that use m, (that being me) use m is outside of the devcontainer. Also the devcontainer.json file is VS Code specific and ignored by neovim itself.

However, this is a consideration for VS Codium users, as many linux distributions ship it instead of the official VS code binary. It will happily run devcontainer projects, but further investigation is required. It may fail to install it or Microsoft may fail to block it.

I was thinking about in the containers, yes. Sorry, I probably should have been more specific.

For some reason, I had it in my head that neovim had some workaround for the MS devcontainer plugin, is this even true?

@HakierGrzonzo
Copy link
Collaborator

@JAS-lzn neovim has many elaborate ways of managing LSP servers (for example pyright). I use Mason.
I do not install LSP servers per project or even system wide, neovim manages their installation and keeping them up to date.
The way most neovim users, that use m, (that being me) use m is outside of the devcontainer. Also the devcontainer.json file is VS Code specific and ignored by neovim itself.
However, this is a consideration for VS Codium users, as many linux distributions ship it instead of the official VS code binary. It will happily run devcontainer projects, but further investigation is required. It may fail to install it or Microsoft may fail to block it.

I was thinking about in the containers, yes. Sorry, I probably should have been more specific.

For some reason, I had it in my head that neovim had some workaround for the MS devcontainer plugin, is this even true?

There are some workarounds (no experience with this one), but they ignore the extensions configuration, since it is not applicable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants