1
0
Fork 0

Add some settings that should improve performance for lsp-mode

This commit is contained in:
Tom Willemse 2020-02-25 10:17:32 -08:00
parent cc8de9b58e
commit bb231392df
2 changed files with 7 additions and 1 deletions

View file

@ -4,7 +4,7 @@
;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local
;; Version: 2020.0224.220825
;; Version: 2020.0225.095408
;; Package-Requires: (oni-data-dir expand-region multiple-cursors embrace helpful)
;; This program is free software; you can redistribute it and/or modify
@ -84,6 +84,11 @@
(setq electric-pair-skip-whitespace 'chomp)
(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-default indent-tabs-mode nil)

View file

@ -45,6 +45,7 @@
(princ help-string))))
(setq lsp-prefer-flymake nil)
(setq lsp-prefer-capf t)
(setq lsp-ui-doc-enable nil)
(setq lsp-ui-sideline-enable nil)