summaryrefslogtreecommitdiffstats
path: root/autoload/polyglot/init.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2021-06-09 11:49:01 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2021-06-09 11:49:01 +0200
commitaf4d6aa3cf5eab6cf555cbb067f8316cca7975bf (patch)
tree2b9c667247f6af23e6adfbc7069398626dd8f805 /autoload/polyglot/init.vim
parentff8c1d76741f148d5f6efb9a57119dcf11afaec6 (diff)
downloadvim-polyglot-af4d6aa3cf5eab6cf555cbb067f8316cca7975bf.tar.gz
vim-polyglot-af4d6aa3cf5eab6cf555cbb067f8316cca7975bf.zip
Use more modern haxe package, closes #340
Diffstat (limited to 'autoload/polyglot/init.vim')
-rw-r--r--autoload/polyglot/init.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/autoload/polyglot/init.vim b/autoload/polyglot/init.vim
index afd2ea9d..6c2e9b87 100644
--- a/autoload/polyglot/init.vim
+++ b/autoload/polyglot/init.vim
@@ -112,6 +112,8 @@ if !exists('g:python_highlight_all')
call s:SetDefault('g:python_slow_sync', 1)
endif
+" Some variables are needed for haxe loading
+
" We need it because scripts.vim in vim uses "set ft=" which cannot be
" overridden with setf (and we can't use set ft= so our scripts.vim work)
func! s:Setf(ft)
@@ -2300,6 +2302,8 @@ endif
if !has_key(g:polyglot_is_disabled, 'haxe')
au BufNewFile,BufRead *.hx,*.hxsl setf haxe
+ au BufNewFile,BufRead *.hxml setf hxml
+ au BufNewFile,BufRead *.hss setf hss
endif
if !has_key(g:polyglot_is_disabled, 'haskell')