This repository was archived by the owner on Jan 21, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path+lsp.el
More file actions
40 lines (32 loc) · 1.4 KB
/
+lsp.el
File metadata and controls
40 lines (32 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
;;; +lsp.el -*- lexical-binding: t; -*-
;; ---------------------------------------
;; LSP Configuration
(use-package! lsp-mode
:commands lsp
:config
;; Core
(setq
;; https://emacs-lsp.github.io/lsp-mode/page/settings/headerline/
lsp-headerline-breadcrumb-enable t ; Breadcrumb trail
lsp-headerline-breadcrumb-segments '(symbols) ; namespace & symbols, no file path
lsp-signature-render-documentation nil
lsp-signature-function 'lsp-signature-posframe
lsp-semantic-tokens-enable t
lsp-idle-delay 0.2 ;; Smoother LSP features response in cost of performance (Most servers I use have good performance)
lsp-use-plists nil)
(add-hook 'lsp-after-apply-edits-hook (lambda (&rest _) (save-buffer)))
(add-hook 'lsp-mode-hook (lambda () (setq-local company-format-margin-function #'company-vscode-dark-icons-margin))))
(use-package! lsp-treemacs
:config
(setq lsp-treemacs-error-list-current-project-only t))
(use-package! lsp-ui
:after lsp-mode
:commands lsp-ui-mode
:config
(setq lsp-ui-doc-enable nil ;; disable all doc popups
lsp-ui-sideline-enable nil ;; disable sideline bar for less distraction
treemacs-space-between-root-nodes nil ;; no spacing in treemacs views
lsp-log-io t ; Log client-server json communication
lsp-ui-peek-enable t))
;; End of LSP
;; ---------------------------------------