We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c351137 commit 6af606bCopy full SHA for 6af606b
lsp-ltex.el
@@ -287,6 +287,20 @@ The editor need to send a completion request.")
287
(cl-remove-if #'null args)
288
" ")))))))
289
290
+(defun lsp-ltex--plist-keys (plist)
291
+ "Return the keys of PLIST."
292
+ (let (keys)
293
+ (while plist
294
+ (push (car plist) keys)
295
+ (setq plist (cddr plist)))
296
+ keys))
297
+
298
+(defun lsp-ltex--lsp-keys (table)
299
+ "Similar to `lsp-get' and `lsp-put', it return the keys in TABLE."
300
+ (if lsp-use-plists
301
+ (lsp-ltex--plist-keys table)
302
+ (hash-table-keys table)))
303
304
(defun lsp-ltex--serialize-symbol (sym dir)
305
"Serialize SYM to DIR.
306
Return the written file name, or nil if SYM is not bound."
0 commit comments