From c83209e86dd448727a132e88e95ac5d7776de923 Mon Sep 17 00:00:00 2001 From: Willem van den Ende Date: Wed, 15 Jul 2026 09:42:17 +0100 Subject: [PATCH] refactor(elixir): switch from elixir-ls to expert LSP, drop +lsp module --- config.el | 9 ++++++--- custom.el | 13 ++++--------- init.el | 2 +- 3 files changed, 11 insertions(+), 13 deletions(-) diff --git a/config.el b/config.el index 963a693..2801e51 100644 --- a/config.el +++ b/config.el @@ -73,7 +73,10 @@ ) (with-eval-after-load 'eglot - (add-to-list 'eglot-server-programs '(elixir-ts-mode . ("sh" "~/.elixir-ls/release/language_server.sh")))) + (setf (alist-get '(elixir-mode elixir-ts-mode heex-ts-mode) + eglot-server-programs + nil nil #'equal) + '("expert" "--stdio"))) (use-package elixir-ts-mode @@ -394,8 +397,8 @@ (use-package! pi-coding-agent :commands pi :init (defalias 'pi 'pi-coding-agent) - :custom pi-coding-agent-executable '("devcontainer" "exec" "pi")) - +;; :custom pi-coding-agent-executable '("devcontainer" "exec" "pi")) + ) ;; Load machine-specific configuration (gptel backends, etc.) (load! "config-mac.el" doom-user-dir t) diff --git a/custom.el b/custom.el index 5958c11..ee57c68 100644 --- a/custom.el +++ b/custom.el @@ -4,16 +4,11 @@ ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(safe-local-variable-values - '((qwan-markdown-attachment-dir - . "/Users/willem/dev/elixir/firehose/app/priv/static/images/blog/2026") - (qwan-markdown-attachment-dir - . "/Users/willem/dev/elixir/firehoseapp/priv/static/images/blog/2026") - (eval setq-local org-roam-db-location - (expand-file-name "org-roam.db" org-roam-directory)) + '((eval setq-local org-roam-db-location + (expand-file-name "org-roam.db" org-roam-directory)) (eval setq-local org-roam-directory - (expand-file-name - (locate-dominating-file default-directory ".dir-locals.el"))) - (qwan-markdown-attachment-dir . "app/priv/static/images/blog/2026")))) + (expand-file-name + (locate-dominating-file default-directory ".dir-locals.el")))))) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. diff --git a/init.el b/init.el index ce8c5de..fade6cd 100644 --- a/init.el +++ b/init.el @@ -125,7 +125,7 @@ ;;csharp ; unity, .NET, and mono shenanigans ;;data ; config/data formats ;;(dart +flutter) ; paint ui and not much else - (elixir +lsp) ; erlang done right + (elixir) ; erlang done right ;;elm ; care for a cup of TEA? emacs-lisp ; drown in parentheses ;;erlang ; an elegant language for a more civilized age