summaryrefslogtreecommitdiffstats
path: root/scripts/build
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-10-19 02:25:59 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2020-10-19 02:25:59 +0200
commitc3e825027ddabecf18370df61c1da4018f017b7b (patch)
tree8d60a5b049a927d6aedb938e25612aa4e7ba14aa /scripts/build
parent3618414fad6ac488e89895810d3a3da3c3c1c6fd (diff)
downloadvim-polyglot-c3e825027ddabecf18370df61c1da4018f017b7b.tar.gz
vim-polyglot-c3e825027ddabecf18370df61c1da4018f017b7b.zip
Allow vim-polyglot to load in non-compatible mode
Diffstat (limited to 'scripts/build')
-rwxr-xr-xscripts/build10
1 files changed, 1 insertions, 9 deletions
diff --git a/scripts/build b/scripts/build
index d77a556a..b3867b97 100755
--- a/scripts/build
+++ b/scripts/build
@@ -848,15 +848,7 @@ def generate_plugins(packages)
end
output << " \\}\n\n"
-
- output << <<~EOS
- func! polyglot#sleuth#GlobForFiletype(type)
- return get(s:globs, a:type, '')
- endfunc
- EOS
-
-
- File.write('autoload/polyglot/sleuth.vim', output)
+ inject_code('autoload/polyglot/sleuth.vim', output)
end
def process_list(list, extras)