endfor
endif
- return {'Error': errCount, 'Warn': warnCount, 'Info': infoCount, 'Hint': hintCount}
+ return {Error: errCount, Warn: warnCount, Info: infoCount, Hint: hintCount}
enddef
# Map the LSP DiagnosticSeverity to a quickfix type character
# get the count of diagnostics in the current buffer
export def ErrorCount(): dict<number>
- var res = {'Error': 0, 'Warn': 0, 'Info': 0, 'Hint': 0}
+ var res = {Error: 0, Warn: 0, Info: 0, Hint: 0}
var fname: string = @%
if fname == ''
return res
# clear the symbol reference highlight
def g:LspDocHighlightClear()
- prop_remove({'type': 'LspTextRef', 'all': true}, 1, line('$'))
- prop_remove({'type': 'LspReadRef', 'all': true}, 1, line('$'))
- prop_remove({'type': 'LspWriteRef', 'all': true}, 1, line('$'))
+ :silent! prop_remove({types: ['LspTextRef', 'LspReadRef', 'LspWriteRef'],
+ all: true})
enddef
def g:LspRequestDocSymbols()