autoload/handlers.vim | 4 +++- diff --git a/autoload/handlers.vim b/autoload/handlers.vim index c17de720915ffa4a1133ab4841ce947f987b24c8..f6804165a830443aa607e743a86fd4990316b585 100644 --- a/autoload/handlers.vim +++ b/autoload/handlers.vim @@ -103,7 +103,9 @@ lspserver.ready = true # if the outline window is opened, then request the symbols for the current # buffer - lspserver.getDocSymbols(@%) + if bufwinid('LSP-Outline') != -1 + lspserver.getDocSymbols(@%) + endif enddef # process the 'textDocument/definition' / 'textDocument/declaration' /