CloseSignaturePopup(lspserver)
enddef
+export def InitOnce()
+ hlset([{name: 'LspSigActiveParameter', default: true, linksto: 'LineNr'}])
+enddef
+
# Initialize the signature triggers for the current buffer
export def BufferInit(lspserver: dict<any>)
if !lspserver.isSignatureHelpProvider
:echon "\r\r"
:echon ''
:echon text->strpart(0, startcol)
- :echoh LineNr
+ :echoh LspSigActiveParameter
:echon text->strpart(startcol, hllen)
:echoh None
:echon text->strpart(startcol + hllen)
var popupID = text->popup_atcursor({moved: [col('.') - 1, 9999999]})
var bnum: number = popupID->winbufnr()
- prop_type_add('signature', {bufnr: bnum, highlight: 'LineNr'})
+ prop_type_add('signature', {bufnr: bnum, highlight: 'LspSigActiveParameter'})
if hllen > 0
prop_add(1, startcol + 1, {bufnr: bnum, length: hllen, type: 'signature'})
endif
*LspInlayHintsType* Used to highlight inlay hints of kind "type".
By default, linked to the "Conceal" highlight
group.
+*LspSigActiveParameter* Used to highlight the active signature
+ parameter. By default, linked to the "LineNr"
+ highlight group.
For example, to override the highlight used for diagnostics virtual text, you
can use the following: >