]> Sergey Matveev's repositories - vim-lsp.git/commitdiff
Add examples and references to the two options that affect ":LspOutline"
authorAndreas Louv <andreas@louv.dk>
Sun, 16 Apr 2023 16:50:17 +0000 (18:50 +0200)
committerAndreas Louv <andreas@louv.dk>
Sun, 16 Apr 2023 16:52:49 +0000 (18:52 +0200)
doc/lsp.txt

index c472668eee0e96b9806331b3ac0ccb09b2b6ef25..18bfeed8b8a922984899cdcc3b7a086f591c14a3 100644 (file)
@@ -708,6 +708,24 @@ can map these commands to keys and make it easier to invoke them.
                        the symbols in the new file.  Folds are created in the
                        outline window for the various group of symbols.
 
+                       You can use |lsp-opt-outlineOnRight| and
+                       |lsp-opt-outlineWinSize| to customize the placement and
+                       size of the window.
+
+                       This command also supports |:command-modifiers|.  You
+                       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|
+                       Example: >
+
+                           # Open the outline window just above the current window
+                           :aboveleft LspOutline
+
+                           # Open the outline window just next to the current
+                           # window, this is different from the default, when
+                           # you have multiple splits already
+                           :vert aboveleft LspOutline
+<
                                                *:LspPeekDeclaration*
 :LspPeekDeclaration    Displays the line where the symbol under the
                        cursor is declared in a popup window. The