From 48eb0fb1a890077cc85f1916fc2c8bb611a0f8d5 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Wed, 14 Apr 2021 12:14:37 +0200 Subject: Update --- 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 2ffe93ca..3b7e8072 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, 'sway') + au BufNewFile,BufRead *sway/config setf sway +endif + if !has_key(g:polyglot_is_disabled, 'hjson') au BufNewFile,BufRead *.hjson setf hjson endif diff --git a/autoload/polyglot/sleuth.vim b/autoload/polyglot/sleuth.vim index a84ae67a..50b3321b 100644 --- a/autoload/polyglot/sleuth.vim +++ b/autoload/polyglot/sleuth.vim @@ -525,6 +525,7 @@ let s:globs = { \ 'svelte': '*.svelte', \ 'svg': '*.svg', \ 'svn': 'svn-commit*.tmp', + \ 'sway': '', \ 'swift': '*.swift', \ 'swiftgyb': '*.swift.gyb', \ 'sxhkdrc': '*.sxhkdrc,sxhkdrc', -- cgit v1.2.3