File tree 3 files changed +8
-7
lines changed
3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ let g:python_highlight_all = 1
59
59
| --------------------------------------------- | -------------------------------------------------------------- | ------- |
60
60
| ` g:python_version_2 ` | Python 2 mode | ` 0 ` |
61
61
| ` b:python_version_2 ` | Python 2 mode (buffer local) | ` 0 ` |
62
- | ` g:python_highlight_builtins ` | Highlight builtin functions and objects | ` 0 ` |
62
+ | ` g:python_highlight_builtins ` | Highlight builtin objects, types, and functions | ` 0 ` |
63
63
| ` g:python_highlight_builtin_objs ` | Highlight builtin objects only | ` 0 ` |
64
64
| ` g:python_highlight_builtin_types ` | Highlight builtin types only | ` 0 ` |
65
65
| ` g:python_highlight_builtin_funcs ` | Highlight builtin functions only | ` 0 ` |
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ following command to your `~/.config/nvim/init.vim` or `~/.vimrc`: >
57
57
Python 2 mode (buffer local)
58
58
59
59
`g:python_highlight_builtins` (default `0`)
60
- Highlight builtin functions and objects
60
+ Highlight builtin functions, types, and objects
61
61
62
62
`g:python_highlight_builtin_objs` (default `0`)
63
63
Highlight builtin objects only
Original file line number Diff line number Diff line change @@ -41,11 +41,6 @@ call s:EnableByDefault('g:python_highlight_builtin_funcs_kwarg')
41
41
42
42
if s: Enabled (' g:python_highlight_all' )
43
43
call s: EnableByDefault (' g:python_highlight_builtins' )
44
- if s: Enabled (' g:python_highlight_builtins' )
45
- call s: EnableByDefault (' g:python_highlight_builtin_objs' )
46
- call s: EnableByDefault (' g:python_highlight_builtin_funcs' )
47
- call s: EnableByDefault (' g:python_highlight_builtin_types' )
48
- endif
49
44
call s: EnableByDefault (' g:python_highlight_exceptions' )
50
45
call s: EnableByDefault (' g:python_highlight_string_formatting' )
51
46
call s: EnableByDefault (' g:python_highlight_string_format' )
@@ -59,6 +54,12 @@ if s:Enabled('g:python_highlight_all')
59
54
call s: EnableByDefault (' g:python_highlight_operators' )
60
55
endif
61
56
57
+ if s: Enabled (' g:python_highlight_builtins' )
58
+ call s: EnableByDefault (' g:python_highlight_builtin_objs' )
59
+ call s: EnableByDefault (' g:python_highlight_builtin_funcs' )
60
+ call s: EnableByDefault (' g:python_highlight_builtin_types' )
61
+ endif
62
+
62
63
"
63
64
" Function calls
64
65
"
You can’t perform that action at this time.
0 commit comments