mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-08 03:24:47 +08:00
JediDebugInfo: skip newline with no non-default settings
This commit is contained in:
@@ -218,17 +218,22 @@ EOF
|
|||||||
echo "\n"
|
echo "\n"
|
||||||
echo '##### Settings'
|
echo '##### Settings'
|
||||||
echo '```'
|
echo '```'
|
||||||
for [k, V] in items(filter(copy(g:), "v:key =~# '\\v^jedi#'"))
|
let jedi_settings = items(filter(copy(g:), "v:key =~# '\\v^jedi#'"))
|
||||||
|
let has_nondefault_settings = 0
|
||||||
|
for [k, V] in jedi_settings
|
||||||
exe 'let default = '.get(s:default_settings,
|
exe 'let default = '.get(s:default_settings,
|
||||||
\ substitute(k, '\v^jedi#', '', ''), "'-'")
|
\ substitute(k, '\v^jedi#', '', ''), "'-'")
|
||||||
" vint: -ProhibitUsingUndeclaredVariable
|
" vint: -ProhibitUsingUndeclaredVariable
|
||||||
if default !=# V
|
if default !=# V
|
||||||
echo printf('g:%s = %s (default: %s)', k, string(V), string(default))
|
echo printf('g:%s = %s (default: %s)', k, string(V), string(default))
|
||||||
unlet! V " Fix variable type mismatch with Vim 7.3.
|
unlet! V " Fix variable type mismatch with Vim 7.3.
|
||||||
|
let has_nondefault_settings = 1
|
||||||
endif
|
endif
|
||||||
" vint: +ProhibitUsingUndeclaredVariable
|
" vint: +ProhibitUsingUndeclaredVariable
|
||||||
endfor
|
endfor
|
||||||
echo "\n"
|
if has_nondefault_settings
|
||||||
|
echo "\n"
|
||||||
|
endif
|
||||||
verb set omnifunc? completeopt?
|
verb set omnifunc? completeopt?
|
||||||
echo '```'
|
echo '```'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user