summaryrefslogtreecommitdiffstats
path: root/ftdetect/polyglot.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-08-18 20:52:00 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2020-08-18 20:52:00 +0200
commitf8cee0172b311d5c9b78cf7a44b8829b218cc64e (patch)
tree8b429bbcdc6eed3ac671d7f0ee213b9a7d9cc738 /ftdetect/polyglot.vim
parentc6936aeeb1e0540328c3a0d3b932f0b0f48618fd (diff)
downloadvim-polyglot-f8cee0172b311d5c9b78cf7a44b8829b218cc64e.tar.gz
vim-polyglot-f8cee0172b311d5c9b78cf7a44b8829b218cc64e.zip
Allow to set let g:python_highlight_all = 0, closes #474
Diffstat (limited to 'ftdetect/polyglot.vim')
-rw-r--r--ftdetect/polyglot.vim37
1 files changed, 19 insertions, 18 deletions
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim
index 06d23633..6e604622 100644
--- a/ftdetect/polyglot.vim
+++ b/ftdetect/polyglot.vim
@@ -28,24 +28,25 @@ call s:SetDefault('g:vim_json_syntax_conceal', 0)
call s:SetDefault('g:filetype_euphoria', 'elixir')
-call s:SetDefault('g:python_highlight_builtins', 1)
-call s:SetDefault('g:python_highlight_builtin_objs', 1)
-call s:SetDefault('g:python_highlight_builtin_types', 1)
-call s:SetDefault('g:python_highlight_builtin_funcs', 1)
-call s:SetDefault('g:python_highlight_builtin_funcs_kwarg', 1)
-call s:SetDefault('g:python_highlight_exceptions', 1)
-call s:SetDefault('g:python_highlight_string_formatting', 1)
-call s:SetDefault('g:python_highlight_string_format', 1)
-call s:SetDefault('g:python_highlight_string_templates', 1)
-call s:SetDefault('g:python_highlight_indent_errors', 1)
-call s:SetDefault('g:python_highlight_space_errors', 1)
-call s:SetDefault('g:python_highlight_doctests', 1)
-call s:SetDefault('g:python_highlight_func_calls', 1)
-call s:SetDefault('g:python_highlight_class_vars', 1)
-call s:SetDefault('g:python_highlight_operators', 1)
-call s:SetDefault('g:python_highlight_file_headers_as_comments', 1)
-call s:SetDefault('g:python_slow_sync', 1)
-
+if !exists('g:python_highlight_all')
+ call s:SetDefault('g:python_highlight_builtins', 1)
+ call s:SetDefault('g:python_highlight_builtin_objs', 1)
+ call s:SetDefault('g:python_highlight_builtin_types', 1)
+ call s:SetDefault('g:python_highlight_builtin_funcs', 1)
+ call s:SetDefault('g:python_highlight_builtin_funcs_kwarg', 1)
+ call s:SetDefault('g:python_highlight_exceptions', 1)
+ call s:SetDefault('g:python_highlight_string_formatting', 1)
+ call s:SetDefault('g:python_highlight_string_format', 1)
+ call s:SetDefault('g:python_highlight_string_templates', 1)
+ call s:SetDefault('g:python_highlight_indent_errors', 1)
+ call s:SetDefault('g:python_highlight_space_errors', 1)
+ call s:SetDefault('g:python_highlight_doctests', 1)
+ call s:SetDefault('g:python_highlight_func_calls', 1)
+ call s:SetDefault('g:python_highlight_class_vars', 1)
+ call s:SetDefault('g:python_highlight_operators', 1)
+ call s:SetDefault('g:python_highlight_file_headers_as_comments', 1)
+ call s:SetDefault('g:python_slow_sync', 1)
+endif
if index(g:polyglot_disabled, 'acpiasl') == -1
au BufNewFile,BufRead *.asl set ft=asl