Skip to content

Commit d35aa75

Browse files
authored
fix(lsp-format-buffer-on-save): :safe syntax to correctly (#4761)
My [feat: `lsp-format-buffer-on-save` configurable via `.dir-locals.el` by ncaq · Pull Request #4760 · emacs-lsp/lsp-mode](#4760) is invalid. I fix to `:safe #'booleanp` syntax.
1 parent 57e3061 commit d35aa75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lsp-mode.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ before saving a document."
579579
"If non-nil format buffer on save.
580580
To only format specific major-mode buffers see `lsp-format-buffer-on-save-list'."
581581
:type 'boolean
582-
:safe t
582+
:safe #'booleanp
583583
:local t
584584
:group 'lsp-mode)
585585

0 commit comments

Comments
 (0)