summaryrefslogtreecommitdiffstats
path: root/ftplugin/racket.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ftplugin/racket.vim')
-rw-r--r--ftplugin/racket.vim9
1 files changed, 1 insertions, 8 deletions
diff --git a/ftplugin/racket.vim b/ftplugin/racket.vim
index bc3d76c9..ad4be8c8 100644
--- a/ftplugin/racket.vim
+++ b/ftplugin/racket.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, 'ftplugin/racket.vim', 1, 1), Filter)
-if len(files) > 0
- exec 'source ' . files[0]
+if !polyglot#util#IsEnabled('racket', expand('<sfile>:p'))
finish
endif
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'racket') == -1
" Language: Racket
" Maintainer: Will Langstroth <will@langstroth.com>
@@ -83,5 +78,3 @@ let b:undo_ftplugin =
\. "| setl makeprg< commentstring<"
\. "| nunmap <buffer> K"
\. "| vunmap <buffer> K"
-
-endif