emacs: Fix TRAMP config, update next-ls config to enable completions

This commit is contained in:
Erwin Boskma 2024-02-09 20:37:41 +01:00
parent f79d87cb36
commit ce0e34f316
Signed by: erwin
SSH key fingerprint: SHA256:/Wk1WZdLg+vQHs3in9qq7PsIp8SMzwGSk/RLZ5zPuZk

View file

@ -900,9 +900,9 @@ Enable [[https://github.com/BurntSushi/ripgrep][ripgrep]] support
Set some connection properties Set some connection properties
#+begin_src emacs-lisp #+begin_src emacs-lisp
(add-to-list 'tramp-connection-properties (with-eval-after-load "tramp" (add-to-list 'tramp-connection-properties
(list (regexp-quote "/sshx:hass:") (list (regexp-quote "/sshx:hass:")
"remote-shell" "/bin/bash")) "remote-shell" "/bin/bash")))
#+end_src #+end_src
** Git ** Git
@ -1108,9 +1108,12 @@ Automatically use the =<lang>-ts-mode= when it is available
:config :config
(fset #'json--log-event #'ignore) ;; Performance boost by not logging every event (fset #'json--log-event #'ignore) ;; Performance boost by not logging every event
(add-to-list 'eglot-server-programs (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 (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 (add-to-list 'eglot-server-programs
'(dhall-mode . ("dhall-lsp-server"))) '(dhall-mode . ("dhall-lsp-server")))
(add-to-list 'eglot-stay-out-of 'flymake) (add-to-list 'eglot-stay-out-of 'flymake)