aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorHirokazu Hata <h.hata.ai.t@gmail.com>2020-02-22 21:20:38 +0900
committerHirokazu Hata <h.hata.ai.t@gmail.com>2020-03-01 09:10:02 +0900
commit16262472cda88d0a4dc5c6729cfef36264569324 (patch)
treea2262b0ccd3a957c9f27114365dff0f835bbc71c /runtime/doc
parentf157fdef7eccba6601c6d3b1475847466b60c25b (diff)
downloadrneovim-16262472cda88d0a4dc5c6729cfef36264569324.tar.gz
rneovim-16262472cda88d0a4dc5c6729cfef36264569324.tar.bz2
rneovim-16262472cda88d0a4dc5c6729cfef36264569324.zip
lsp: add 'textDocument/documentSymbol’ callback
Spec: https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_documentSymbol
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/lsp.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt
index d5ed857f32..2f5427f6fc 100644
--- a/runtime/doc/lsp.txt
+++ b/runtime/doc/lsp.txt
@@ -48,6 +48,7 @@ go-to-definition, hover, etc. Example config: >
nnoremap <silent> <c-k> <cmd>lua vim.lsp.buf.signature_help()<CR>
nnoremap <silent> 1gD <cmd>lua vim.lsp.buf.type_definition()<CR>
nnoremap <silent> gr <cmd>lua vim.lsp.buf.references()<CR>
+ nnoremap <silent> g0 <cmd>lua vim.lsp.buf.document_symbol()<CR>
Nvim provides the |vim.lsp.omnifunc| 'omnifunc' handler which allows
|i_CTRL-X_CTRL-O| to consume LSP completion. Example config (note the use of
@@ -733,6 +734,9 @@ definition() *vim.lsp.buf.definition()*
document_highlight() *vim.lsp.buf.document_highlight()*
TODO: Documentation
+document_symbol() *vim.lsp.buf.document_symbol()*
+ TODO: Documentation
+
formatting({options}) *vim.lsp.buf.formatting()*
TODO: Documentation