diff options
Diffstat (limited to 'compiler/nix-build.vim')
-rw-r--r-- | compiler/nix-build.vim | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/compiler/nix-build.vim b/compiler/nix-build.vim index 0eb5f694..89a2453b 100644 --- a/compiler/nix-build.vim +++ b/compiler/nix-build.vim @@ -1,11 +1,6 @@ -let s:base = expand("<sfile>:h:h") -let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" } -let files = filter(globpath(&rtp, 'compiler/nix-build.vim', 1, 1), Filter) -if len(files) > 0 - exec 'source ' . files[0] +if !polyglot#util#IsEnabled('nix', expand('<sfile>:p')) finish endif -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'nix') == -1 if exists('current_compiler') finish @@ -18,5 +13,3 @@ endif CompilerSet errorformat=error:\ %m\ at\ %f:%l:%c,builder\ for\ \'%m\'\ failed\ with\ exit\ code\ %n,fixed-output\ derivation\ produced\ path\ \'%s\'\ with\ %m CompilerSet makeprg=nix-build - -endif |