reddit / emacs

How to get `pyright` complete `pandas`?

InterestingRun9118 · 2022-02-20 02:42
I use eglot and pyright. `lsp-pyright` can complete `pandas` but when I switch to eglot I can't get completion. I can get completion after `pyright --createstubs pandas` within the project, but I miss the global pyright completion just like lsp-pyright. How could I fix it?
InterestingRun9118 · 2022-02-20 03:01
``` (setq-default eglot-workspace-configuration '((:pyright . ((useLibraryCodeForTypes . t))))) ``` fixed