diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2021-01-03 14:14:59 +0100 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2021-01-03 14:14:59 +0100 |
commit | 7bde552a463999897320a1899a6ca4f8806041ea (patch) | |
tree | 6e19f7a82a01e2dcf11f6996a1d8e2489efc41af /autoload | |
parent | 09f31c433a136450b9faa33b08fc3281bdea5acc (diff) | |
download | vim-polyglot-7bde552a463999897320a1899a6ca4f8806041ea.tar.gz vim-polyglot-7bde552a463999897320a1899a6ca4f8806041ea.zip |
Add hjson, closes #659
Co-authored-by: SebastienElet <sebastien@elet.fr>
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/polyglot/init.vim | 4 | ||||
-rw-r--r-- | autoload/polyglot/sleuth.vim | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/autoload/polyglot/init.vim b/autoload/polyglot/init.vim index 8af31ec2..19134f9e 100644 --- a/autoload/polyglot/init.vim +++ b/autoload/polyglot/init.vim @@ -168,6 +168,10 @@ let did_load_filetypes = 1 " DO NOT EDIT CODE BELOW, IT IS GENERATED WITH MAKEFILE +if !has_key(g:polyglot_is_disabled, 'hjson') + au BufNewFile,BufRead *.hjson setf hjson +endif + if !has_key(g:polyglot_is_disabled, 'gleam') au BufNewFile,BufRead *.gleam setf gleam endif diff --git a/autoload/polyglot/sleuth.vim b/autoload/polyglot/sleuth.vim index 8a5f57ba..725e1887 100644 --- a/autoload/polyglot/sleuth.vim +++ b/autoload/polyglot/sleuth.vim @@ -224,6 +224,7 @@ let s:globs = { \ 'hex': '*.hex,*.h32', \ 'hgcommit': 'hg-editor-*.txt', \ 'hive': '*.q,*.hql,*.ql', + \ 'hjson': '*.hjson', \ 'hog': '*.hog,snort.conf,vision.conf', \ 'hollywood': '*.hws', \ 'hostconf': '', |