Skip to content

Commit 88f560b

Browse files
authored
Fix #64
Introduce g:quickui_buffer_list_cli to set the CLI and flags that used for buffer list. The default value is 'ls t' which means show the most recently used buffers. For more info about flags, please check :help ls
1 parent 1e03ea7 commit 88f560b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

autoload/quickui/tools.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@
1414
" list buffer ids
1515
"----------------------------------------------------------------------
1616
function! s:buffer_list()
17+
let l:ls_cli = get(g:, 'quickui_buffer_list_cli', 'ls t')
1718
redir => buflist
18-
silent! ls
19+
silent execute l:ls_cli
1920
redir END
2021
let bids = []
2122
for curline in split(buflist, '\n')

0 commit comments

Comments
 (0)