:LspOutline|Show the list of symbols defined in the current file in a separate window.
:LspFormat|Format the current file using the LSP server.
:{range}LspFormat|Format the specified range of lines.
-:LspCalledBy|Display the list of symbols called by the current symbol.
-:LspCalling|Display the list of symbols calling the current symbol.
+:LspIncomingCalls|Display the list of symbols calling the current symbol.
+:LspOutgoingCalls|Display the list of symbols called by the current symbol.
:LspRename|Rename the current symbol
:LspCodeAction|Apply the code action supplied by the LSP server to the diagnostic in the current line.
:LspSymbolSearch|Perform a workspace wide search for a symbol
in a separate window.
:LspFormat Format the current file using the LSP server.
:{range}LspFormat Format the specified range of lines.
-:LspCalledBy Display the list of symbols called by the current
- symbol in a new location list.
-:LspCalling Display the list of symbols calling the current symbol
+:LspIncomingCalls Display the list of symbols calling the current symbol
in a new location list.
+:LspOutgoingCalls Display the list of symbols called by the current
+ symbol in a new location list.
:LspRename Rename the current symbol
:LspCodeAction Apply the code action supplied by the LSP server to
the diagnostic in the current line.
:{range}LspFormat Format the specified range of lines in the current
file using the LSP server.
- *:LspCalledBy*
-:LspCalledBy Creates a new location list with the location of
- the list of symbols called by the current symbol.
-
- *:LspCalling*
-:LspCalling Creates a new location list with the location of the
+ *:LspIncomingCalls*
+:LspIncomingCalls Creates a new location list with the location of the
list of symbols calling the current symbol.
+ *:LspOutoingCalls*
+:LspOutoingCalls Creates a new location list with the location of
+ the list of symbols called by the current symbol.
+
*:LspRename*
:LspRename Rename the current symbol. You will be prompted to
enter the new name for the symbol. You can press <Esc>
import '../autoload/lspoptions.vim' as lspoptions
import '../autoload/lsp.vim'
- opt.LspOptionsSet = lspoptions.LspOptionsSet
+ opt.LspOptionsSet = lspoptions.OptionsSet
opt.lspOptions = lspoptions.lspOptions
lspf.enableServerTrace = lsp.EnableServerTrace
lspf.addServer = lsp.AddServer
import '../autoload/lspoptions.vim' as opt_import
import '../autoload/lsp.vim' as lsp_import
- opt.LspOptionsSet = opt_import.LspOptionsSet
+ opt.LspOptionsSet = opt_import.OptionsSet
opt.lspOptions = opt_import.lspOptions
lspf.enableServerTrace = lsp_import.EnableServerTrace
lspf.addServer = lsp_import.AddServer
lspf.addWorkspaceFolder = lsp_import.AddWorkspaceFolder
lspf.removeWorkspaceFolder = lsp_import.RemoveWorkspaceFolder
else
- import {lspOptions, LspOptionsSet} from '../autoload/lspoptions.vim'
+ import {lspOptions, OptionsSet} from '../autoload/lspoptions.vim'
import {EnableServerTrace,
AddServer,
ServerReady,
AddWorkspaceFolder,
RemoveWorkspaceFolder} from '../autoload/lsp.vim'
- opt.LspOptionsSet = LspOptionsSet
+ opt.LspOptionsSet = OptionsSet
opt.lspOptions = lspOptions
lspf.enableServerTrace = EnableServerTrace
lspf.addServer = AddServer
lspf.removeWorkspaceFolder = RemoveWorkspaceFolder
endif
-g:LspOptionsSet = s:opt.LspOptionsSet
-g:LspServerTraceEnable = s:lspf.enableServerTrace
+def g:LspOptionsSet(opts: dict<any>)
+ opt.LspOptionsSet(opts)
+enddef
+
+def g:LspServerTraceEnable()
+ lspf.enableServerTrace()
+enddef
def g:LspAddServer(serverList: list<dict<any>>)
lspf.addServer(serverList)
command! -nargs=0 -bar LspHighlightClear call LspDocHighlightClear()
command! -nargs=0 -bar LspOutline call Toutline()
command! -nargs=0 -bar -range=% LspFormat call TtextDocFormat(<range>, <line1>, <line2>)
-command! -nargs=0 -bar LspCalledBy call TincomingCalls()
-command! -nargs=0 -bar LspCalling call ToutgoingCalls()
+command! -nargs=0 -bar LspOutgoingCalls call ToutgoingCalls()
+command! -nargs=0 -bar LspIncomingCalls call TincomingCalls()
command! -nargs=0 -bar LspRename call Trename()
command! -nargs=0 -bar LspCodeAction call TcodeAction()
command! -nargs=? -bar LspSymbolSearch call TsymbolSearch(<q-args>)
anoremenu <silent> L&sp.Outline :LspOutline<CR>
anoremenu <silent> L&sp.Symbol\ Search :LspSymbolSearch<CR>
- anoremenu <silent> L&sp.CalledBy :LspCalledBy<CR>
- anoremenu <silent> L&sp.Calling :LspCalling<CR>
+ anoremenu <silent> L&sp.Outgoing\ Calls :LspOutgoingCalls<CR>
+ anoremenu <silent> L&sp.Incoming\ Calls :LspIncomingCalls<CR>
anoremenu <silent> L&sp.Rename :LspRename<CR>
anoremenu <silent> L&sp.Code\ Action :LspCodeAction<CR>