From a16b6d8c71568519e023d9dd010d20fb28c96f8f Mon Sep 17 00:00:00 2001 From: Bigo Date: Thu, 28 Jun 2018 10:43:11 +0100 Subject: [PATCH 1/2] Allow customization of vimfiler_quick_look_command --- config/plugins/vimfiler.vim | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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' From 126414b9e285278dcb3f086d0e7e023daa260d4b Mon Sep 17 00:00:00 2001 From: Bigo Date: Thu, 28 Jun 2018 10:45:49 +0100 Subject: [PATCH 2/2] Update Following-HEAD.md --- wiki/en/Following-HEAD.md | 1 + 1 file changed, 1 insertion(+) 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))