From c3e825027ddabecf18370df61c1da4018f017b7b Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Mon, 19 Oct 2020 02:25:59 +0200 Subject: Allow vim-polyglot to load in non-compatible mode --- autoload/polyglot/sleuth.vim | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'autoload/polyglot/sleuth.vim') diff --git a/autoload/polyglot/sleuth.vim b/autoload/polyglot/sleuth.vim index db032dd6..b5b30ab8 100644 --- a/autoload/polyglot/sleuth.vim +++ b/autoload/polyglot/sleuth.vim @@ -1,3 +1,9 @@ +" Restore 'cpoptions' +let s:cpo_save = &cpo +set cpo&vim + +" DO NOT EDIT CODE BELOW, IT IS GENERATED WITH MAKEFILE + let s:globs = { \ '8th': '*.8th', \ 'Jenkinsfile': '*.jenkinsfile,*.Jenkinsfile,Jenkinsfile,Jenkinsfile*', @@ -624,6 +630,13 @@ let s:globs = { \ 'zsh': '*.zsh,.zshrc,.zshenv,.zlogin,.zprofile,.zlogout,.zlog*,.zcompdump*,.zfbfmarks,.zsh*', \} + +" DO NOT EDIT CODE ABOVE, IT IS GENERATED WITH MAKEFILE + func! polyglot#sleuth#GlobForFiletype(type) return get(s:globs, a:type, '') endfunc + +" Restore 'cpoptions' +let &cpo = s:cpo_save +unlet s:cpo_save -- cgit v1.2.3