diff --git a/config/plugins/vimfiler.vim b/config/plugins/vimfiler.vim index 4e524cd1f..2138ce7ff 100644 --- a/config/plugins/vimfiler.vim +++ b/config/plugins/vimfiler.vim @@ -22,12 +22,14 @@ let g:vimfiler_ignore_pattern = get(g:, 'vimfiler_ignore_pattern', [ \ '^\.' \]) -if has('mac') - let g:vimfiler_quick_look_command = - \ '/Applications//Sublime\ Text.app/Contents/MacOS/Sublime\ Text' -else - let g:vimfiler_quick_look_command = 'gloobus-preview' +if has('mac') + let g:vimfiler_quick_look_command = + \ get(g:, 'vimfiler_quick_look_command', 'qlmanage -p') +else + let g:vimfiler_quick_look_command = + \ get(g:, 'vimfiler_quick_look_command', 'gloobus-preview') endif + function! s:setcolum() abort if g:spacevim_enable_vimfiler_filetypeicon && !g:spacevim_enable_vimfiler_gitstatus return 'filetypeicon' diff --git a/wiki/en/Following-HEAD.md b/wiki/en/Following-HEAD.md index 6b890f693..05869ee9d 100644 --- a/wiki/en/Following-HEAD.md +++ b/wiki/en/Following-HEAD.md @@ -15,6 +15,7 @@ The next release is v0.9.0. ### Changed +- Allow customization of vimfiler_quick_look_command ([#1889](https://github.com/SpaceVim/pull/1889)) - Change the option name `enable_statusline_display_mode` to `enable_statusline_mode` ([#1843](https://github.com/SpaceVim/SpaceVim/pull/1843)) - Recover spell and list option in go layer ([#1872](https://github.com/SpaceVim/SpaceVim/pull/1872))