From 7bde552a463999897320a1899a6ca4f8806041ea Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Sun, 3 Jan 2021 14:14:59 +0100 Subject: Add hjson, closes #659 Co-authored-by: SebastienElet --- autoload/polyglot/init.vim | 4 ++++ autoload/polyglot/sleuth.vim | 1 + 2 files changed, 5 insertions(+) (limited to 'autoload') 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': '', -- cgit v1.2.3