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-format-buffer
lsp-organize-imports lsp-organize-imports
lsp-install-server) lsp-install-server)
:hook ((prog-mode . (lambda () :hook ((markdown-mode . lsp-deferred)
(unless (derived-mode-p 'emacs-lisp-mode 'lisp-mode 'makefile-mode) (js-mode . lsp-deferred)
(lsp-deferred)))) (php-mode . lsp-deferred)
(markdown-mode . lsp-deferred)
(lsp-mode . lsp-enable-which-key-integration)) (lsp-mode . lsp-enable-which-key-integration))
:custom :custom
(lsp-headerline-breadcrumb-enable nil) (lsp-headerline-breadcrumb-enable nil)