blob: 40ba785fa5c944872e25ad5d40a897a6993a73b0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
;;; my-lsp.el --- Configures emacs for LSP -*- lexical-binding: t -*-
;; Author: Franck Cuny <franck@fcuny.net>
;;; Commentary:
;;; Code:
(require 'eglot)
;; settings related to performance
;; https://emacs-lsp.github.io/lsp-mode/page/performance/
(setq read-process-output-max (* 1024 1024)) ;; 1mb
(setq gc-cons-threshold 100000000) ;; 100mb
(global-set-key (kbd "C-c l e") #'eglot)
(define-key eglot-mode-map (kbd "C-c l s") #'eglot-shutdown)
(define-key eglot-mode-map (kbd "C-c l r") #'eglot-rename)
(define-key eglot-mode-map (kbd "C-c l a") #'eglot-code-actions)
(define-key eglot-mode-map (kbd "C-c l o") #'eglot-code-action-organize-imports)
(provide 'my-lsp)
;;; my-lsp.el ends here
|