lspcontainers / lspcontainers.nvim

Neovim plugin for lspcontainers.
Apache License 2.0
313 stars 34 forks source link

pyright with pyenv #64

Closed stuart-warren closed 1 year ago

stuart-warren commented 2 years ago

I've been struggling to get pyright to play nice with pyenv-virtualenv

I had to do something like https://github.com/lspcontainers/lspcontainers.nvim/compare/main...stuart-warren:pyenv and also use pyenv-pyright to configure something in pyright correctly

perhaps there is a nicer way to do so?

ref: https://github.com/neovim/nvim-lspconfig/issues/717

stuart-warren commented 2 years ago

I see there is existing discussion in https://github.com/lspcontainers/dockerfiles/pull/46 regarding other python language servers and various tools for managing virtual environments

erikreinert commented 2 years ago

Yup - we've discovered that because of the requirements on how packages are injected into the container we've had some issues. I know that it's currently being investigated and I'm going to take another try at it in the next week.

erikreinert commented 1 year ago

There is currently a proposal issue open for fixing a lot of problems similar to this. i am going to include this PR in that issue for further tracking.

Thank you for the help!