Disable autoload lsp on prog-mode.

This commit is contained in:
kj 2022-06-11 02:47:09 -04:00
parent 787e23525c
commit e6e6c20c9c

View File

@ -20,10 +20,9 @@
lsp-format-buffer
lsp-organize-imports
lsp-install-server)
:hook ((prog-mode . (lambda ()
(unless (derived-mode-p 'emacs-lisp-mode 'lisp-mode 'makefile-mode)
(lsp-deferred))))
(markdown-mode . lsp-deferred)
:hook ((markdown-mode . lsp-deferred)
(js-mode . lsp-deferred)
(php-mode . lsp-deferred)
(lsp-mode . lsp-enable-which-key-integration))
:custom
(lsp-headerline-breadcrumb-enable nil)