1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-04-14 15:19:12 +08:00

Allow customization of vimfiler_quick_look_command

This commit is contained in:
Bigo 2018-06-28 10:43:11 +01:00
parent 66d9dcfaa7
commit a16b6d8c71

View File

@ -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'