mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-11 04:53:51 -05:00
17 lines
465 B
VimL
17 lines
465 B
VimL
let files = filter(globpath(&rtp, 'compiler/fish.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
|
|
if len(files) > 0
|
|
exec 'source ' . files[0]
|
|
finish
|
|
endif
|
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'fish') == -1
|
|
|
|
if exists('current_compiler')
|
|
finish
|
|
endif
|
|
let current_compiler = 'fish'
|
|
|
|
CompilerSet makeprg=fish\ --no-execute\ %
|
|
execute 'CompilerSet errorformat='.escape(fish#errorformat(), ' ')
|
|
|
|
endif
|