mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-31 11:02:37 +01:00
add help for :colorscheme and move completion function to
completion.colorScheme
This commit is contained in:
@@ -813,6 +813,19 @@ function Completion() //{{{
|
||||
return [0, buildLongestCommonSubstring(items, filter)];
|
||||
},
|
||||
|
||||
colorScheme: function colorScheme(filter)
|
||||
{
|
||||
let schemes = [];
|
||||
let rtp = options["runtimepath"].split(",");
|
||||
|
||||
rtp.forEach(function (path) {
|
||||
schemes = schemes.concat([[c[0].replace(/\.vimp$/, ""), ""]
|
||||
for each (c in completion.file(path + "/colors/", true)[1])]);
|
||||
});
|
||||
|
||||
return [0, completion.filter(schemes, filter)];
|
||||
},
|
||||
|
||||
command: function command(filter)
|
||||
{
|
||||
var completions = [];
|
||||
|
||||
Reference in New Issue
Block a user