From ce0e34f316a939b9d9f92b680f73fecd88e0941e Mon Sep 17 00:00:00 2001 From: Erwin Boskma Date: Fri, 9 Feb 2024 20:37:41 +0100 Subject: [PATCH] emacs: Fix TRAMP config, update next-ls config to enable completions --- home-manager/modules/emacs/config.org | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/home-manager/modules/emacs/config.org b/home-manager/modules/emacs/config.org index 56b0760..130b5ff 100644 --- a/home-manager/modules/emacs/config.org +++ b/home-manager/modules/emacs/config.org @@ -900,9 +900,9 @@ Enable [[https://github.com/BurntSushi/ripgrep][ripgrep]] support Set some connection properties #+begin_src emacs-lisp - (add-to-list 'tramp-connection-properties - (list (regexp-quote "/sshx:hass:") - "remote-shell" "/bin/bash")) + (with-eval-after-load "tramp" (add-to-list 'tramp-connection-properties + (list (regexp-quote "/sshx:hass:") + "remote-shell" "/bin/bash"))) #+end_src ** Git @@ -1108,9 +1108,12 @@ Automatically use the =-ts-mode= when it is available :config (fset #'json--log-event #'ignore) ;; Performance boost by not logging every event (add-to-list 'eglot-server-programs - '(conf-toml-mode . ("taplo" "lsp" "stdio"))) + '((toml-mode toml-ts-mode conf-toml-mode) . ("taplo" "lsp" "stdio"))) (add-to-list 'eglot-server-programs - `((elixir-mode elixir-ts-mode heex-ts-mode) . ,(eglot-alternatives '(("nextls" "--stdio") "elixir-ls")))) + `((elixir-mode elixir-ts-mode heex-ts-mode) . + ,(eglot-alternatives '(("nextls" "--stdio=true" + :initializationOptions (:experimental (:completions (:enable t)))) + "elixir-ls")))) (add-to-list 'eglot-server-programs '(dhall-mode . ("dhall-lsp-server"))) (add-to-list 'eglot-stay-out-of 'flymake)