Fixed elixir-ls config
This commit is contained in:
parent
bfdd5c8c89
commit
0d4d33b2f0
1 changed files with 21 additions and 20 deletions
|
@ -1003,26 +1003,27 @@ Visualise git changes in the gutter, next to the line numbers
|
||||||
[[https://joaotavora.github.io/eglot/][eglot]] is an alternative to =lsp-mode= that is builtin with emacs >= 29
|
[[https://joaotavora.github.io/eglot/][eglot]] is an alternative to =lsp-mode= that is builtin with emacs >= 29
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package eglot
|
(use-package eglot
|
||||||
:config
|
:config
|
||||||
(add-to-list 'eglot-server-programs
|
(add-to-list 'eglot-server-programs
|
||||||
'(conf-toml-mode . ("taplo" "lsp" "stdio"))
|
'(conf-toml-mode . ("taplo" "lsp" "stdio")))
|
||||||
'(elixir-mode elixir-ts-mode heex-ts-mode . ("elixir-ls")))
|
(add-to-list 'eglot-server-programs
|
||||||
(setq eglot-autoshutdown t
|
'((elixir-mode elixir-ts-mode heex-ts-mode) . ("elixir-ls")))
|
||||||
eldoc-echo-area-use-multiline-p 0.1)
|
(setq eglot-autoshutdown t
|
||||||
:hook
|
eldoc-echo-area-use-multiline-p 0.1)
|
||||||
(eglot-managed-mode . (lambda ()
|
:hook
|
||||||
(eglot-inlay-hints-mode 1)
|
(eglot-managed-mode . (lambda ()
|
||||||
(define-key eglot-mode-map (kbd "C-c l a") 'eglot-code-actions)
|
(eglot-inlay-hints-mode 1)
|
||||||
(define-key eglot-mode-map (kbd "C-c l f") 'eglot-format)
|
(define-key eglot-mode-map (kbd "C-c l a") 'eglot-code-actions)
|
||||||
(define-key eglot-mode-map (kbd "C-c l h") 'eldoc)
|
(define-key eglot-mode-map (kbd "C-c l f") 'eglot-format)
|
||||||
(define-key eglot-mode-map (kbd "C-c l i") 'eglot-find-implementation)
|
(define-key eglot-mode-map (kbd "C-c l h") 'eldoc)
|
||||||
(define-key eglot-mode-map (kbd "C-c l r") 'eglot-rename)
|
(define-key eglot-mode-map (kbd "C-c l i") 'eglot-find-implementation)
|
||||||
(define-key eglot-mode-map (kbd "C-c l t") 'eglot-find-typeDefinition)
|
(define-key eglot-mode-map (kbd "C-c l r") 'eglot-rename)
|
||||||
(define-key eglot-mode-map (kbd "C-c l w d") 'eglot-list-connections)
|
(define-key eglot-mode-map (kbd "C-c l t") 'eglot-find-typeDefinition)
|
||||||
(define-key eglot-mode-map (kbd "C-c l w r") 'eglot-reconnect)
|
(define-key eglot-mode-map (kbd "C-c l w d") 'eglot-list-connections)
|
||||||
(define-key eglot-mode-map (kbd "C-c l w q") 'eglot-shutdown)
|
(define-key eglot-mode-map (kbd "C-c l w r") 'eglot-reconnect)
|
||||||
(define-key eglot-mode-map (kbd "C-c l y") 'eglot-inlay-hints-mode))))
|
(define-key eglot-mode-map (kbd "C-c l w q") 'eglot-shutdown)
|
||||||
|
(define-key eglot-mode-map (kbd "C-c l y") 'eglot-inlay-hints-mode))))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
[[https://github.com/nemethf/eglot-x][eglot-x]] adds support for some LSP extensions to =eglot=
|
[[https://github.com/nemethf/eglot-x][eglot-x]] adds support for some LSP extensions to =eglot=
|
||||||
|
|
Loading…
Reference in a new issue