about summary refs log tree commit diff stats
path: root/emacs-prelude/personal/lisp/init-lsp.el
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2021-05-26 10:06:56 +0000
committerDavid Morgan <djm_uk@protonmail.com>2021-05-26 10:06:56 +0000
commitb5e8c2052c43e9865aad35380ff0b36cabae19d2 (patch)
tree64df1a2604066e1f5d3c0c2fc6a01ce85090d17b /emacs-prelude/personal/lisp/init-lsp.el
parentccfeb564b6507fdf9b202527f90e6d11d50350eb (diff)
downloaddotfiles-b5e8c2052c43e9865aad35380ff0b36cabae19d2.tar.gz
Add emacs prelude config
Diffstat (limited to 'emacs-prelude/personal/lisp/init-lsp.el')
-rw-r--r--emacs-prelude/personal/lisp/init-lsp.el23
1 files changed, 23 insertions, 0 deletions
diff --git a/emacs-prelude/personal/lisp/init-lsp.el b/emacs-prelude/personal/lisp/init-lsp.el
new file mode 100644
index 0000000..c92ade7
--- /dev/null
+++ b/emacs-prelude/personal/lisp/init-lsp.el
@@ -0,0 +1,23 @@
+(use-package lsp-mode
+  :hook (clojure-mode . lsp)
+  :config
+  (setq gc-cons-threshold (* 100 1024 1024)
+        read-process-output-max (* 1024 1024)
+        treemacs-space-between-root-nodes nil
+        lsp-ui-doc-delay 1
+        lsp-lens-enable nil
+        lsp-ui-doc-enable t
+        lsp-ui-doc-show-with-cursor t
+        lsp-ui-doc-show-with-mouse t
+        lsp-headerline-breadcrumb-enable nil
+        lsp-enable-symbol-highlighting t
+        lsp-ui-sideline-show-diagnostics t
+        lsp-ui-sideline-show-code-actions nil
+        lsp-modeline-code-actions-enable nil ;; TODO this causes errors in *Messages* if t
+        lsp-modeline-diagnostics-enable nil
+        ;; user cider for indendation and completion instead
+        lsp-enable-indentation nil
+        lsp-completion-enable nil))
+
+(provide 'init-lsp)
+