From f8cee0172b311d5c9b78cf7a44b8829b218cc64e Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Tue, 18 Aug 2020 20:52:00 +0200 Subject: Allow to set let g:python_highlight_all = 0, closes #474 --- ftdetect/polyglot.vim | 37 +++++++++++++++++++------------------ 1 file changed, 19 insertions(+), 18 deletions(-) (limited to 'ftdetect') 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 -- cgit v1.2.3