lsp: Show docs on hover

Also:
- Install the script to <prefix>/bin
- Fix a bug in XmlReader that would cause "uninteresting" tags to not be
  fully ignored
- Other minor improvements
This commit is contained in:
James Westman 2021-10-24 17:10:05 -05:00
parent 8fc0efb642
commit 55a117a5b7
No known key found for this signature in database
GPG key ID: CE2DBA0ADB654EA6
7 changed files with 85 additions and 31 deletions

View file

@ -72,10 +72,10 @@ class GirNode:
@lazy_prop
def doc(self) -> str:
el = self.xml.find("doc")
if el is None:
el = self.xml.get_elements("doc")
if len(el) != 1:
return None
return el.cdata
return el[0].cdata.strip()
class Property(GirNode):