diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2020-04-14 13:17:26 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2020-04-14 13:17:26 +0200 |
commit | 14dc82fc4e6c0c08078f97a24a6c1639c1cc5113 (patch) | |
tree | dea8d2398a9377a0eee7786776e3cd420ce1ee89 /ftplugin/crystal.vim | |
parent | e86e0ad36ef9501acbc3e8c63a1d4fab104e47cb (diff) | |
download | vim-polyglot-14dc82fc4e6c0c08078f97a24a6c1639c1cc5113.tar.gz vim-polyglot-14dc82fc4e6c0c08078f97a24a6c1639c1cc5113.zip |
Update
Diffstat (limited to 'ftplugin/crystal.vim')
-rw-r--r-- | ftplugin/crystal.vim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ftplugin/crystal.vim b/ftplugin/crystal.vim index c23d93f6..441e069f 100644 --- a/ftplugin/crystal.vim +++ b/ftplugin/crystal.vim @@ -5,6 +5,11 @@ if exists('b:did_ftplugin') endif let b:did_ftplugin = 1 +" This file is loaded on 'ecrystal' filetype +if &filetype !=# 'crystal' + finish +endif + let s:save_cpo = &cpo set cpo&vim @@ -76,6 +81,11 @@ if &l:ofu ==# '' setlocal omnifunc=crystal_lang#complete endif +if exists('AutoPairsLoaded') + let b:AutoPairs = { '{%': '%}' } + call extend(b:AutoPairs, g:AutoPairs, 'force') +endif + let &cpo = s:save_cpo unlet s:save_cpo |