]> Sergey Matveev's repositories - vim-lsp.git/commitdiff
Use a single line instead of multiple lines for a List
authorYegappan Lakshmanan <yegappan@yahoo.com>
Sun, 19 Jan 2025 06:29:41 +0000 (22:29 -0800)
committerYegappan Lakshmanan <yegappan@yahoo.com>
Sun, 19 Jan 2025 06:29:41 +0000 (22:29 -0800)
autoload/lsp/semantichighlight.vim

index 243aea9ded828a86146ca0f9ed4a6673a8696d52..130463bea1cdc3c06596a573c4ce7e0fb1ac96d2 100644 (file)
@@ -172,10 +172,7 @@ def ProcessSemanticTokens(lspserver: dict<any>, bnr: number, tokens: list<number
     if !props->has_key(typeStr)
       props[typeStr] = []
     endif
-    props[typeStr]->add([
-       lnum, r.start.character + 1,
-       lnum, r.end.character + 1
-      ])
+    props[typeStr]->add([lnum, r.start.character + 1, lnum, r.end.character + 1])
 
     i += 5
   endwhile
@@ -220,8 +217,7 @@ export def UpdateTokens(lspserver: dict<any>, bnr: number, semTokens: dict<any>)
   # Apply the new text properties
   for tokenType in TokenTypeMap->keys()
     if props->has_key(tokenType)
-      prop_add_list({bufnr: bnr, type: TokenTypeMap[tokenType]},
-       props[tokenType])
+      prop_add_list({bufnr: bnr, type: TokenTypeMap[tokenType]}, props[tokenType])
     endif
   endfor
 enddef