diff --git a/autoload/lsp/lsp.vim b/autoload/lsp/lsp.vim index 3e6461b9..5138c177 100644 --- a/autoload/lsp/lsp.vim +++ b/autoload/lsp/lsp.vim @@ -339,7 +339,14 @@ def LspSavedFile(bnr: number) endif for lspserver in lspservers - lspserver.didSaveFile(bnr) + # TODO: implement `catch` block + # Wrap method with `try-finally` block to solve error: + # `E716: Key not present in Dictionary: "supportsDidSave"` + try + lspserver.didSaveFile(bnr) + finally + return + endtry endfor enddef