commit 6f0c909a1abf7bb448cc123ee285d8910c288896
parent 46963d3181eff186bf717db1129f74120832623f
Author: Alex Balgavy <a.balgavy@gmail.com>
Date: Wed, 15 Apr 2020 14:36:23 +0200
Fix filetype issue
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/autoload/lf.vim b/autoload/lf.vim
@@ -39,13 +39,14 @@ function! lf#LF(path, edit_cmd)
if filereadable(s:choice_file_path)
for f in readfile(s:choice_file_path)
exec s:edit_cmd . f
+ filetype detect
endfor
call delete(s:choice_file_path)
endif
redraw!
" reset the filetype to fix the issue that happens
" when opening lf on VimEnter (with `vim .`)
- filetype detect
+ " filetype detect
endfunction
set guioptions+=! " Make it work with MacVim
let currentPath = expand(a:path)