]> Sergey Matveev's repositories - vim-lsp.git/commitdiff
Make it possible to out-out of vert splits
authorAndreas Louv <andreas@louv.dk>
Sun, 16 Apr 2023 13:07:47 +0000 (15:07 +0200)
committerAndreas Louv <andreas@louv.dk>
Sun, 16 Apr 2023 13:07:47 +0000 (15:07 +0200)
autoload/lsp/outline.vim

index eb91ea1e248e606fd9d49b1e2b6e653b3d31b6fc..b42fe649c19b1852ceaec32dc58b929fc1c179ac 100644 (file)
@@ -229,13 +229,13 @@ export def OpenOutlineWindow(cmdmods: string)
   var mods = cmdmods
   if mods == ''
     if opt.lspOptions.outlineOnRight
-      mods = ':botright'
+      mods = ':vert :botright'
     else
-      mods = ':topleft'
+      mods = ':vert :topleft'
     endif
   endif
 
-  execute $'{mods} :{opt.lspOptions.outlineWinSize}vnew LSP-Outline'
+  execute $'{mods} :{opt.lspOptions.outlineWinSize}new LSP-Outline'
   :setlocal modifiable
   :setlocal noreadonly
   :silent! :%d _