mirror of
https://github.com/junegunn/fzf.vim.git
synced 2026-05-24 17:28:43 +08:00
[Commands] List user-defined commands first
This commit is contained in:
+1
-1
@@ -465,7 +465,7 @@ function! s:commands(bang)
|
|||||||
redir END
|
redir END
|
||||||
let list = split(cout, "\n")
|
let list = split(cout, "\n")
|
||||||
call s:fzf({
|
call s:fzf({
|
||||||
\ 'source': extend(extend(list[0:0], s:excmds()), map(list[1:], 's:format_cmd(v:val)')),
|
\ 'source': extend(extend(list[0:0], map(list[1:], 's:format_cmd(v:val)')), s:excmds()),
|
||||||
\ 'sink': function('s:command_sink'),
|
\ 'sink': function('s:command_sink'),
|
||||||
\ 'options': '--ansi --tiebreak=index --header-lines 1 -x --prompt "Commands> " -n2 -d'.s:nbs}, a:bang)
|
\ 'options': '--ansi --tiebreak=index --header-lines 1 -x --prompt "Commands> " -n2 -d'.s:nbs}, a:bang)
|
||||||
endfunction
|
endfunction
|
||||||
|
|||||||
Reference in New Issue
Block a user