Add some settings that should improve performance for lsp-mode
This commit is contained in:
parent
cc8de9b58e
commit
bb231392df
2 changed files with 7 additions and 1 deletions
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
;; Author: Tom Willemse <tom@ryuslash.org>
|
;; Author: Tom Willemse <tom@ryuslash.org>
|
||||||
;; Keywords: local
|
;; Keywords: local
|
||||||
;; Version: 2020.0224.220825
|
;; Version: 2020.0225.095408
|
||||||
;; Package-Requires: (oni-data-dir expand-region multiple-cursors embrace helpful)
|
;; Package-Requires: (oni-data-dir expand-region multiple-cursors embrace helpful)
|
||||||
|
|
||||||
;; This program is free software; you can redistribute it and/or modify
|
;; This program is free software; you can redistribute it and/or modify
|
||||||
|
@ -84,6 +84,11 @@
|
||||||
(setq electric-pair-skip-whitespace 'chomp)
|
(setq electric-pair-skip-whitespace 'chomp)
|
||||||
(setq fit-window-to-buffer-horizontally t)
|
(setq fit-window-to-buffer-horizontally t)
|
||||||
|
|
||||||
|
;; Increase the threshold for garbage collection for increased performance.
|
||||||
|
;; Apparently there are some (lsp-mode for example) packages that generate a lot
|
||||||
|
;; of garbage.
|
||||||
|
(setq gc-cons-threshold 100000000)
|
||||||
|
|
||||||
(setq auth-sources (remove "~/.authinfo" auth-sources))
|
(setq auth-sources (remove "~/.authinfo" auth-sources))
|
||||||
|
|
||||||
(setq-default indent-tabs-mode nil)
|
(setq-default indent-tabs-mode nil)
|
||||||
|
|
|
@ -45,6 +45,7 @@
|
||||||
(princ help-string))))
|
(princ help-string))))
|
||||||
|
|
||||||
(setq lsp-prefer-flymake nil)
|
(setq lsp-prefer-flymake nil)
|
||||||
|
(setq lsp-prefer-capf t)
|
||||||
|
|
||||||
(setq lsp-ui-doc-enable nil)
|
(setq lsp-ui-doc-enable nil)
|
||||||
(setq lsp-ui-sideline-enable nil)
|
(setq lsp-ui-sideline-enable nil)
|
||||||
|
|
Loading…
Reference in a new issue