about summary refs log tree commit diff stats
path: root/.emacs.d/lisp/init-lsp.el
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2022-06-23 08:11:51 +0100
committerDavid Morgan <djm_uk@protonmail.com>2022-06-23 08:11:51 +0100
commit905c736c6204df9cfeedc7df041430bc46ce2f29 (patch)
treecc5d61c416fca215c6fca0fd695a014f6741415a /.emacs.d/lisp/init-lsp.el
parent3833e177943b74480016107d33524842a59097c9 (diff)
downloaddotfiles-905c736c6204df9cfeedc7df041430bc46ce2f29.tar.gz
Experiment with lsp for clojure completion
Diffstat (limited to '.emacs.d/lisp/init-lsp.el')
-rw-r--r--.emacs.d/lisp/init-lsp.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/.emacs.d/lisp/init-lsp.el b/.emacs.d/lisp/init-lsp.el
index 18856c4..372e983 100644
--- a/.emacs.d/lisp/init-lsp.el
+++ b/.emacs.d/lisp/init-lsp.el
@@ -23,10 +23,14 @@
   :hook
   (clojure-mode . lsp)
   (lsp-lens-mode . really-diminish-lsp-lens-mode)
+  (lsp-completion-mode . my/lsp-mode-setup-completion)
   :config
   (defun really-diminish-lsp-lens-mode ()
     (diminish 'lsp-lens-mode)
     (remove-hook 'lsp-lens-mode-hook 'really-diminish-lsp-lens-mode))
+  (defun my/lsp-mode-setup-completion ()
+    (setf (alist-get 'styles (alist-get 'lsp-capf completion-category-defaults))
+          '(orderless)))
   (if (eq system-type 'darwin)
       (setq lsp-keymap-prefix "s-l")
     (setq lsp-keymap-prefix "C-c C-l"))
@@ -40,9 +44,10 @@
         lsp-modeline-code-actions-enable nil
         lsp-modeline-diagnostics-enable nil
         lsp-treemacs-theme "Iconless"
+        lsp-completion-provider :none ;; use corfu
         ;; user cider for indendation, completion and eldoc instead
         lsp-enable-indentation nil
-        lsp-completion-enable nil
+        ;;lsp-completion-enable nil
         lsp-eldoc-enable-hover nil))
 
 (provide 'init-lsp)