sublimelsp / LSP-pylsp

Convenience package for the Python Language Server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hints for base methods

Pshemas opened this issue · comments

How do you get doc hints when you hover over a basic method (for example .get, .dict, .copy etc)? I can't get it to work. With methods from imports / self written ones I get the desired popover.

With Pyright I get it correctly:
pyright_hintbubble

My LSP-pylsp.sublime-settings looks like this:

{
    "settings":
    {
        "pylsp.plugins.jedi.environment": "./.venv/"
    }

}


- as I want Pylsp to pick up virtual environment I've set up.
BTW - is there a way to set such things up in some sort of config file in the project, instead of "global" setting in Sublime config? I really like the way it is done in Pyright via pryrightconfig.json .

I've found setup.cfg, but it seems I can set pycodestyle there (for example ignores), but not venv.

It works here with LSP code. This is from pylsp:

Screenshot 2022-05-31 at 15 52 14

Could be something with your settings or this specific code you are testing on.
Can you provide a small code sample that reproduces and your LSP-pylsp settings?

BTW - is there a way to set such things up in some sort of config file in the project,

You can set settings per-project: https://lsp.sublimetext.io/guides/client_configuration/#per-project-overrides
I don't think pylsp supports configuration file like pyright.

Closing due to no response.
Feel free to provide an example and I'll try to look into more.