mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
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:
@@ -73,7 +73,6 @@
|
||||
;; Language Servers
|
||||
(require 'siren-lsp)
|
||||
(require 'siren-lsp-ui)
|
||||
(require 'siren-company-lsp)
|
||||
(require 'siren-helm-lsp)
|
||||
|
||||
;; Shell
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
@@ -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 ()
|
||||
|
||||
Reference in New Issue
Block a user