prefer popup over preview window

This commit is contained in:
Konfekt
2022-11-10 15:55:13 +01:00
parent e82d07faa1
commit 8c7161f4e9
4 changed files with 20 additions and 7 deletions

View File

@@ -360,7 +360,7 @@ def completions():
completions = script.complete(*get_pos(column))
signatures = script.get_signatures(*get_pos(column))
add_info = "preview" in vim.eval("&completeopt").split(",")
add_info = any(option in vim.eval("&completeopt").split(",") for option in ("preview", "popup"))
out = []
for c in completions:
d = dict(word=PythonToVimStr(c.name[:len(base)] + c.complete),