summaryrefslogtreecommitdiffstats
path: root/compiler/powershell.vim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/powershell.vim')
-rw-r--r--compiler/powershell.vim9
1 files changed, 1 insertions, 8 deletions
diff --git a/compiler/powershell.vim b/compiler/powershell.vim
index 9cab203c..e4d5d410 100644
--- a/compiler/powershell.vim
+++ b/compiler/powershell.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/powershell.vim', 1, 1), Filter)
-if len(files) > 0
- exec 'source ' . files[0]
+if !polyglot#util#IsEnabled('powershell', expand('<sfile>:p'))
finish
endif
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'powershell') == -1
" Compiler: powershell
" Run ps1 scripts in powershell and process their output. Quickly jump through
@@ -90,5 +85,3 @@ let &cpo = s:cpo_save
unlet s:cpo_save
" vim:set sw=2 sts=2:
-
-endif