mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-17 13:33:36 -05:00
Add +format-with-lsp variable
To control whether or not to use LSP code formatter when it is available.
This commit is contained in:
@@ -23,6 +23,12 @@ Indentation is always preserved when formatting regions.")
|
||||
(defvar-local +format-with nil
|
||||
"Set this to explicitly use a certain formatter for the current buffer.")
|
||||
|
||||
(defvar +format-with-lsp t
|
||||
"If non-nil, format with LSP formatter if it's available.
|
||||
|
||||
This can be set buffer-locally with `setq-hook!' to disable LSP formatting in
|
||||
select buffers.")
|
||||
|
||||
|
||||
;;
|
||||
;;; Bootstrap
|
||||
|
Reference in New Issue
Block a user