fix(format): wrong-type-argument listp error

This commit is contained in:
Henrik Lissner
2025-04-11 10:17:17 -04:00
parent 7b5bcc00d4
commit dd493e48ed

View File

@ -15,7 +15,8 @@ mode won't conflict with pre-existing user config on `+format-with'."
(setq-local +format-lsp--last +format-with))
(setq-local +format-with
(if +format-with-lsp-mode
(cl-remove-duplicates (cons 'lsp +format-with) :test #'eq)
(cl-remove-duplicates (cons 'lsp (ensure-list +format-with))
:test #'eq)
(prog1 (remq 'lsp (ensure-list +format-lsp--last))
(kill-local-variable '+format-lsp--last)))))