summaryrefslogtreecommitdiffstats
path: root/compiler/fish.vim
blob: 797abcc945b24b10fc34fe6f963ab117d5213b1c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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