LSP improvements.
- Disconnect from flycheck: I finded that it hangs with lsp (checked with profiler-start/stop/report) and freeze emacs for a few seconsand other errors apears like bad syntax highlighting. - Re-enable lsp with prog-mode. - Enable automatic project root detection vía projectile (lsp-auto-guess-root). - Lsp idle delay changed to 0.5 (default value).
This commit is contained in:
parent
d8f91e3dac
commit
ee4c9c351f
@ -20,9 +20,10 @@
|
|||||||
lsp-format-buffer
|
lsp-format-buffer
|
||||||
lsp-organize-imports
|
lsp-organize-imports
|
||||||
lsp-install-server)
|
lsp-install-server)
|
||||||
:hook ((markdown-mode . lsp-deferred)
|
:hook ((prog-mode . (lambda ()
|
||||||
(js-mode . lsp-deferred)
|
(unless (derived-mode-p 'emacs-lisp-mode 'lisp-mode 'makefile-mode)
|
||||||
(php-mode . lsp-deferred)
|
(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)
|
||||||
@ -39,9 +40,11 @@
|
|||||||
lsp-enable-symbol-highlighting nil
|
lsp-enable-symbol-highlighting nil
|
||||||
lsp-enable-text-document-color nil
|
lsp-enable-text-document-color nil
|
||||||
lsp-lens-enable nil
|
lsp-lens-enable nil
|
||||||
|
lsp-auto-guess-root t
|
||||||
|
|
||||||
lsp-log-io nil
|
lsp-log-io nil
|
||||||
lsp-idle-delay 1
|
lsp-idle-delay 0.5
|
||||||
|
lsp-diagnostic-package :none ; Evitar que lsp conecte con flycheck para evitar que se congele
|
||||||
|
|
||||||
lsp-enable-indentation nil
|
lsp-enable-indentation nil
|
||||||
lsp-enable-on-type-formatting nil)
|
lsp-enable-on-type-formatting nil)
|
||||||
|
Loading…
Reference in New Issue
Block a user