summaryrefslogtreecommitdiffstats
path: root/ftdetect
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-09-01 16:02:38 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2020-09-01 16:02:38 +0200
commit45c1923f43f2bb2e626fe910654d4395a0e50a04 (patch)
tree1312bed0819c740f8fe053558da8ee44b7e969f6 /ftdetect
parent8dd0474feb60a4b9f50ee2b8decead0146623966 (diff)
downloadvim-polyglot-4.7.0.tar.gz
vim-polyglot-4.7.0.zip
Add sql support for javascriptv4.7.0
Diffstat (limited to 'ftdetect')
-rw-r--r--ftdetect/polyglot.vim6
1 files changed, 6 insertions, 0 deletions
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim
index 5f4ed809..974aa924 100644
--- a/ftdetect/polyglot.vim
+++ b/ftdetect/polyglot.vim
@@ -28,6 +28,9 @@ call s:SetDefault('g:markdown_enable_mappings', 0)
" Enable jsx syntax by default
call s:SetDefault('g:jsx_ext_required', 0)
+" Needed for sql highlighting
+call s:SetDefault('g:javascript_sql_dialect', 'sql')
+
" Make csv loading faster
call s:SetDefault('g:csv_start', 1)
call s:SetDefault('g:csv_end', 2)
@@ -573,6 +576,9 @@ if !has_key(s:disabled_packages, 'ion')
au BufNewFile,BufRead ~/.config/ion/initrc setf ion
endif
+if !has_key(s:disabled_packages, 'javascript-sql')
+endif
+
if !has_key(s:disabled_packages, 'javascript')
au BufNewFile,BufRead *._js setf javascript
au BufNewFile,BufRead *.bones setf javascript