-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path+lsp.el
More file actions
71 lines (63 loc) · 2.3 KB
/
+lsp.el
File metadata and controls
71 lines (63 loc) · 2.3 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
;;; +lsp.el -*- lexical-binding: t; -*-
(after! lsp-mode
(setq lsp-log-io nil
lsp-file-watch-threshold 8264
lsp-enable-indentation t
lsp-enable-on-type-formatting t)
;; completion
;; (setq lsp-completion-enable t
;; lsp-completion-enable-additional-text-edit
;; lsp-completion-filter-on-incomplete
;; lsp-completion-no-cache
;; lsp-completion-provider
;; lsp-completion-show-detail t
;; lsp-completion-show-kind t
;; lsp-completion-show-label-description
;; lsp-completion-sort-initial-results
;; lsp-completion-use-last-result
;; lsp-enable-snippet t)
;; lens
(setq lsp-lens-enable t
lsp-lens-place-position #'end-of-line)
;; headerline
(setq lsp-headerline-breadcrumb-enable nil)
;; modeline
(setq lsp-modeline-workspace-status-enable t
lsp-modeline-code-actions-enable t
lsp-modeline-diagnostics-enable nil
lsp-modeline-diagnostics-scope :file)
(dolist (dir '("[/\\\\]\\.ccls-cache\\'"
"[/\\\\]\\.mypy_cache\\'"
"[/\\\\]\\.pytest_cache\\'"
"[/\\\\]\\.cache\\'"
"[/\\\\]\\.terraform\\'"
"[/\\\\]\\.clwb\\'"
"[/\\\\]__pycache__\\'"
"[/\\\\]\\.devenv\\'"
"[/\\\\]\\.direnv\\'"
"[/\\\\]\\.go\\'"
"[/\\\\]\\.env\\'"
"[/\\\\]\\.local\\'"
"[/\\\\]bazel-bin\\'"
"[/\\\\]bazel-code\\'"
"[/\\\\]bazel-genfiles\\'"
"[/\\\\]bazel-out\\'"
"[/\\\\]bazel-testlogs\\'"
"[/\\\\]node_modules\\'"
"[/\\\\]third_party\\'"
"[/\\\\]buildtools\\'"
"[/\\\\]out\\'"))
(push dir lsp-file-watch-ignored-directories)))
(after! lsp-ui
(setq lsp-ui-doc-enable nil
lsp-ui-peek-enable nil
lsp-ui-doc-border (doom-color 'fg)
lsp-ui-doc-enable t
lsp-ui-doc-include-signature t
lsp-ui-doc-include-signature t
lsp-ui-doc-max-height 30
lsp-ui-doc-max-width 100
lsp-ui-sideline-enable nil
lsp-ui-sideline-ignore-duplicate t))
(after! lsp-treemacs
(setq lsp-treemacs-error-list-current-project-only t))