[lsp] Fix lsp-diagnostics-provider name (#13956)

`lsp-diagnostic-package` was renamed to `lsp-diagnostics-provider` in
[LSP version 7.0.1](f23159a85f/CHANGELOG.org (release-701)).
This commit is contained in:
Fredrik Simón 2020-09-18 20:31:30 +02:00 committed by GitHub
parent 1f869031ab
commit 85bef62e2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 7 deletions

View File

@ -35,7 +35,7 @@
(if (configuration-layer/layer-used-p 'lsp)
(progn
(when (not javascript-lsp-linter)
(setq-local lsp-diagnostic-package :none))
(setq-local lsp-diagnostics-provider :none))
(lsp))
(message "`lsp' layer is not installed, please add `lsp' layer to your dotfile.")))

View File

@ -30,7 +30,7 @@
(progn
;; error checking from lsp langserver sucks, turn it off
;; so eslint won't be overriden
(setq-local lsp-diagnostic-package :none)
(setq-local lsp-diagnostics-provider :none)
(lsp))
(message (concat "`lsp' layer is not installed, "
"please add `lsp' layer to your dotfile."))))

View File

@ -58,11 +58,11 @@
"Setup lsp backend"
(if (configuration-layer/layer-used-p 'lsp)
(progn
;; without setting lsp-diagnostic-package to :none
;; without setting lsp-diagnostics-provider to :none
;; golangci-lint errors won't be reported
(when go-use-golangci-lint
(message "[go] Setting lsp-diagnostic-package :none to enable golangci-lint support.")
(setq-local lsp-diagnostic-provider :none))
(message "[go] Setting lsp-diagnostics-provider :none to enable golangci-lint support.")
(setq-local lsp-diagnostics-provider :none))
(lsp))
(message "`lsp' layer is not installed, please add `lsp' layer to your dotfile.")))

View File

@ -51,7 +51,7 @@
(if (configuration-layer/layer-used-p 'lsp)
(progn
(when (not javascript-lsp-linter)
(setq-local lsp-diagnostic-package :none))
(setq-local lsp-diagnostics-provider :none))
(lsp))
(message (concat "`lsp' layer is not installed, "
"please add `lsp' layer to your dotfile."))))

View File

@ -45,7 +45,7 @@
(if (configuration-layer/layer-used-p 'lsp)
(progn
(when (not typescript-lsp-linter)
(setq-local lsp-diagnostic-package :none))
(setq-local lsp-diagnostics-provider :none))
(lsp))
(message (concat "`lsp' layer is not installed, "
"please add `lsp' layer to your dotfile."))))