I am looking for an opportunity to add autocompletion for gtk3 libs in vim. I already tried vim-jedi as it seems to be a modern autocomplete mechanism for vim and python (also recommended here ), but this does not work for gtk3 material that is imported from gi.repository
from gi.repository import Gtk, GdkPixbuf, Gdk, GObject
I looked at the gi.repository sites. After that, I am not surprised that the Jedi is not able to reveal the methods of the Gtk modules, because these modules are generated there with a lot of magic ;-)
In addition, other "real" IDEs, such as PyCharm , also do not support completion for modules that were imported this way (I tried Community Edition, but I bet that Professional Edition also does not support this).
Does anyone have an idea how to add autocomplete to vim (preferred solution) or another editor / IDE?
GObject, Gtk modules contain quite a lot of methods / classes, and itβs not easy for you to repeat everything you need. Also, it seems that there is only documentation for the C api gtk3, where the method names are not always the same as in the python api ...
source share