enddef
# Handle keys pressed when the workspace symbol popup menu is displayed
-def LspFilterNames(lspserver: dict<any>, popupID: number, key: string): bool
+def s:filterSymbols(lspserver: dict<any>, popupID: number, key: string): bool
var key_handled: bool = false
var update_popup: bool = false
var query: string = lspserver.workspaceSymbolQuery
enddef
# Jump to the location of a symbol selected in the popup menu
-def LspJumpToSymbol(popupID: number, result: number): void
+def s:jumpToSymbol(popupID: number, result: number): void
# clear the message displayed at the command-line
echo ''
mapping: false,
fixed: 1,
close: "button",
- filter: function('s:LspFilterNames', [lspserver]),
- callback: LspJumpToSymbol
+ filter: function('s:filterSymbols', [lspserver]),
+ callback: function('s:jumpToSymbol')
}
lspserver.workspaceSymbolPopup = popup_menu([], popupAttr)
lspserver.workspaceSymbolQuery = query
# Perform a workspace wide symbol lookup
# Uses LSP "workspace/symbol" request
-def lsp#showWorkspaceSymbols(queryArg: string)
+def lsp#symbolSearch(queryArg: string)
var ftype = &filetype
if ftype == ''
return
command! -nargs=0 -bar LspCalling call lsp#outgoingCalls()
command! -nargs=0 -bar LspRename call lsp#rename()
command! -nargs=0 -bar LspCodeAction call lsp#codeAction()
-command! -nargs=? -bar LspShowWorkspaceSymbols call lsp#showWorkspaceSymbols(<q-args>)
+command! -nargs=? -bar LspSymbolSearch call lsp#symbolSearch(<q-args>)
command! -nargs=0 -bar LspWorkspaceListFolders call lsp#listWorkspaceFolders()
command! -nargs=1 -bar -complete=dir LspWorkspaceAddFolder call lsp#addWorkspaceFolder(<q-args>)
command! -nargs=1 -bar -complete=dir LspWorkspaceRemoveFolder call lsp#removeWorkspaceFolder(<q-args>)