feat(lsp): Improve lsp-mode performance, support latest 7.x version

company-lsp is no longer supported by lsp-mode for providing completions
to company, instead company-capf should be used which it built-in to
company itself.
This commit is contained in:
2020-07-04 18:52:33 +01:00
parent 9d724db4e7
commit efd0b421e3
4 changed files with 12 additions and 19 deletions

View File

@@ -73,7 +73,6 @@
;; Language Servers
(require 'siren-lsp)
(require 'siren-lsp-ui)
(require 'siren-company-lsp)
(require 'siren-helm-lsp)
;; Shell

View File

@@ -14,7 +14,7 @@
:custom
(gcmh-idle-delay 10)
(gcmh-high-cons-threshold 16777216))
(gcmh-high-cons-threshold 104857600))
(provide 'siren-core-performance)
;;; siren-core-performance.el ends here

View File

@@ -1,16 +0,0 @@
;;; siren-company-lsp.el --- jimeh's Emacs Siren: company-lsp configuration.
;;; Commentary:
;; Basic configuration for company-lsp.
;;; Code:
(require 'siren-company)
(require 'siren-lsp)
(use-package company-lsp
:defer t)
(provide 'siren-company-lsp)
;;; siren-company-lsp.el ends here

View File

@@ -16,8 +16,18 @@
(lsp-mode . siren-lsp-mode-setup)
:custom
(lsp-keymap-prefix "M-;")
(lsp-eldoc-render-all nil)
(lsp-enable-xref t)
(lsp-enable-file-watchers t)
(lsp-enable-imenu t)
(lsp-keymap-prefix "M-;")
(lsp-prefer-capf t)
;; Set read process output to 1MB, instead of default 4KB. As many language
;; servers produce output ranging from 800KB to 3MB, leaving it at 4KB affects
;; performance. More info here:
;; https://emacs-lsp.github.io/lsp-mode/page/performance/
(read-process-output-max (* 1024 1024))
:init
(defun siren-lsp-mode-setup ()