We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bec73e commit 0d6b66dCopy full SHA for 0d6b66d
lua/easycomplete/cmdline.lua
@@ -530,6 +530,23 @@ this.REG_CMP_HANDLER = {
530
end
531
532
},
533
+ {
534
+ -- 输入 options
535
+ pattern = {
536
+ '^[a-zA-Z0-9_]+%s&$', -- 输入命令完毕后,空格&匹配option: `echo &|`
537
+ '^[a-zA-Z0-9_]+%s+&%w+$', -- 匹配 options 过程中: `echo &e|`
538
+ '^[a-zA-Z0-9_]+%s+.+&$', -- 匹配 options 过程中:`echo &filetype . &|`
539
+ '^[a-zA-Z0-9_]+%s+.+&%w+$' -- 匹配 options 过程中:`echo &filetype . &file|`
540
+ },
541
+ get_cmp_items = function()
542
+ if this.insearch() then
543
+ return this.get_normal_search_cmp()
544
+ else
545
+ local options = this.NATIVE_OPTIONS
546
+ return options
547
+ end
548
549
550
{
551
pattern = {
552
"^[a-zA-Z0-9_]+%s$", -- 命令输入完毕,并敲击空格
0 commit comments