Skip to content

Commit

Permalink
lsp-erlang: add config option for diagnostics on save
Browse files Browse the repository at this point in the history
This can be set via customize

In future we should auto-gen the entire section based on the output of

    elp config
  • Loading branch information
alanz committed Dec 9, 2024
1 parent c3be413 commit 553b7ae
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions clients/lsp-erlang.el
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,19 @@ It can use erlang-ls or erlang-language-platform (ELP)."
:group 'lsp-erlang
:package-version '(lsp-mode . "6.2"))

;; ---------------------------------------------------------------------
;; ELP config settings. Eventually auto-gen these from the output of `elp config`

(defcustom-lsp lsp-erlang-elp-diagnostics-on-save
nil
"Update native diagnostics only when the file is saved."
:group 'lsp-erlang-elp
:type 'boolean
:lsp-path "elp.diagnostics.onSave.enable")

;; ---------------------------------------------------------------------


;; erlang-ls

(defcustom lsp-erlang-ls-server-path
Expand Down

0 comments on commit 553b7ae

Please sign in to comment.