admin管理员组

文章数量:1125727

Using pylsp under vim and ale on Debian 12, I am able to do autocomplete for all built-in Python packages. However, after installing python3-gi to get the PyGObject Gtk bindings, pylsp is unable to provide autocomplete for these.

Any way to configure pylsp to support autocompletion of this library?

Using pylsp under vim and ale on Debian 12, I am able to do autocomplete for all built-in Python packages. However, after installing python3-gi to get the PyGObject Gtk bindings, pylsp is unable to provide autocomplete for these.

Any way to configure pylsp to support autocompletion of this library?

Share Improve this question edited Jan 9 at 5:58 romainl 196k21 gold badges297 silver badges333 bronze badges asked Jan 9 at 3:15 twig-frothtwig-froth 51 silver badge5 bronze badges 1
  • Use pylsp's doc and issue tracker – romainl Commented Jan 9 at 5:58
Add a comment  | 

1 Answer 1

Reset to default 0

Its hard for tools to inspect pygobject but this package contains generated stubs that should work: https://github.com/pygobject/pygobject-stubs

本文标签: pythonHow to configure pylsp to autocomplete for PyGObjectStack Overflow