@@ -531,6 +531,37 @@ function! jedi#smart_auto_mappings()
531
531
return " \<space> "
532
532
endfunction
533
533
534
+ let s: prev_show_call_signatures = 0
535
+ function ! jedi#setup_call_signatures (... ) abort
536
+ if g: jedi #show_call_signatures > 0 && has (' conceal' )
537
+ " +conceal is the default for vim >= 7.3
538
+
539
+ let s: e = g: jedi #call_signature_escape
540
+ let s: full = s: e .' jedi=.\{-}' .s: e .' .\{-}' .s: e .' jedi' .s: e
541
+ let s: ignore = s: e .' jedi.\{-}' .s: e
542
+ exe ' syn match jediIgnore "' .s: ignore .' " contained conceal'
543
+ setlocal conceallevel= 2
544
+ syn match jediFatSymbol " \* _\* " contained conceal
545
+ syn match jediFat " \* _\* .\{ -}\* _\* " contained contains =jediFatSymbol
546
+ syn match jediSpace " \v [ ]+( )@=" contained
547
+ exe ' syn match jediFunction "' .s: full .' " keepend extend '
548
+ \ .' contains=jediIgnore,jediFat,jediSpace'
549
+ \ .' containedin=pythonComment,pythonString,pythonRawString'
550
+ unlet ! s: e s: full s: ignore
551
+
552
+ hi def link jediIgnore Ignore
553
+ hi def link jediFatSymbol Ignore
554
+ hi def link jediSpace Normal
555
+
556
+ if exists (' g:colors_name' )
557
+ hi def link jediFunction CursorLine
558
+ hi def link jediFat TabLine
559
+ else
560
+ hi jediFunction term = NONE cterm= NONE ctermfg= 6 guifg= Black gui = NONE ctermbg= 0 guibg= Grey
561
+ hi jediFat term = bold ,underline cterm= bold ,underline gui = bold ,underline ctermbg= 0 guibg= #555555
562
+ endif
563
+ endif
564
+ endfunction
534
565
535
566
" PythonJedi jedi_vim.jedi.set_debug_function(jedi_vim.print_to_stdout, speed=True, warnings=False, notices=False)
536
567
" PythonJedi jedi_vim.jedi.set_debug_function(jedi_vim.print_to_stdout)
0 commit comments