From bb231392dff3dec68b898c5cddf6e286f549bf78 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Tue, 25 Feb 2020 10:17:32 -0800 Subject: Add some settings that should improve performance for lsp-mode --- oni-core.el | 7 ++++++- oni-lsp.el | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/oni-core.el b/oni-core.el index a828539..7ff16bc 100644 --- a/oni-core.el +++ b/oni-core.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse ;; 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) diff --git a/oni-lsp.el b/oni-lsp.el index 312e294..6b11ea5 100644 --- a/oni-lsp.el +++ b/oni-lsp.el @@ -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) -- cgit v1.2.3-54-g00ecf