From c3d99c0aeab0e3cdb3f6ea8acc1f596530496cdb Mon Sep 17 00:00:00 2001 From: Andreas Louv Date: Sun, 16 Apr 2023 20:32:08 +0200 Subject: [PATCH] Add documentation for "LspOutline" --- doc/lsp.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/doc/lsp.txt b/doc/lsp.txt index 18bfeed..0e47cf2 100644 --- a/doc/lsp.txt +++ b/doc/lsp.txt @@ -697,7 +697,7 @@ can map these commands to keys and make it easier to invoke them. not all the language servers support this feature. *:LspOutline* -:LspOutline Opens a vertically split window with the list of +:[count]LspOutline Opens a vertically split window with the list of symbols defined in the current file. The current symbol is highlighted. The symbols are grouped by their type. You can select a symbol and press @@ -716,6 +716,10 @@ can map these commands to keys and make it easier to invoke them. can use the modifiers specify the position of the window. Note that the default is ":vert :topleft" or ":vert :botright" depending on |lsp-opt-outlineOnRight| + + This command also supports providing a [count] to + specify the size of the window. Note that this + overrides the values defined in |lsp-opt-outlineWinSize| Example: > # Open the outline window just above the current window @@ -725,6 +729,9 @@ can map these commands to keys and make it easier to invoke them. # window, this is different from the default, when # you have multiple splits already :vert aboveleft LspOutline + + # Same as above, but with a width of 50 + :vert aboveleft 50LspOutline < *:LspPeekDeclaration* :LspPeekDeclaration Displays the line where the symbol under the -- 2.50.0