]> Sergey Matveev's repositories - vim-lsp.git/commitdiff
Switch to using new syntax for a lambda function
authorYegappan Lakshmanan <yegappan@yahoo.com>
Wed, 6 Jan 2021 15:18:51 +0000 (07:18 -0800)
committerYegappan Lakshmanan <yegappan@yahoo.com>
Wed, 6 Jan 2021 15:18:51 +0000 (07:18 -0800)
autoload/handlers.vim

index d46295970d98fdd9b153f8923f31da12f1ec7a1f..8132c88adbbdbbedfc679ed5876f0b55053fa52f 100644 (file)
@@ -388,7 +388,7 @@ def s:processDocSymbolReply(lspserver: dict<any>, req: dict<any>, reply: dict<an
   endif
 
   # sort the symbols by line number
-  symbolLineTable->sort({a, b -> a.range.start.line - b.range.start.line})
+  symbolLineTable->sort((a, b) => a.range.start.line - b.range.start.line)
   lsp#updateOutlineWindow(fname, symbolTypeTable, symbolLineTable)
 enddef