mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 14:37:58 +01:00
Fix completion.highlightGroup to only show highlight groups.
This commit is contained in:
@@ -732,11 +732,10 @@ liberator.registerObserver("load_completion", function () {
|
|||||||
context.completions = [[c.leafName.replace(/\.vimp$/, ""), c.parent.path] for ([, c] in Iterator(colors))]
|
context.completions = [[c.leafName.replace(/\.vimp$/, ""), c.parent.path] for ([, c] in Iterator(colors))]
|
||||||
};
|
};
|
||||||
|
|
||||||
// FIXME: extract from :highlight
|
completion.highlightGroup = function highlightGroup(context) {
|
||||||
completion.highlightGroup = function highlightGroup(context, args) {
|
context.title = ["Highlight Group", "Value"];
|
||||||
return commands.get("highlight").completer(context, args);
|
context.completions = [[v.class, v.value] for (v in highlight)];
|
||||||
};
|
};
|
||||||
|
|
||||||
});
|
});
|
||||||
//}}}
|
//}}}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user