[Emacs] Automatically enable LSP for sh-mode, register remote client
All checks were successful
continuous-integration/drone/push Build is passing

Register remote shellcheck LSP server as a new LSP client
This commit is contained in:
Lucien Cartier-Tilet 2022-02-17 23:38:01 +01:00
parent 27c7bd52a5
commit 67916b1c9d
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

View File

@ -5599,6 +5599,7 @@ awesome!
:hook ((c-mode . lsp-deferred) :hook ((c-mode . lsp-deferred)
(c++-mode . lsp-deferred) (c++-mode . lsp-deferred)
(html-mode . lsp-deferred) (html-mode . lsp-deferred)
(sh-mode . lsp-deferred)
(lsp-mode . lsp-enable-which-key-integration) (lsp-mode . lsp-enable-which-key-integration)
(lsp-mode . lsp-ui-mode)) (lsp-mode . lsp-ui-mode))
:commands (lsp lsp-deferred) :commands (lsp lsp-deferred)
@ -5606,7 +5607,13 @@ awesome!
(lsp-rust-analyzer-cargo-watch-command "clippy") (lsp-rust-analyzer-cargo-watch-command "clippy")
(lsp-eldoc-render-all t) (lsp-eldoc-render-all t)
(lsp-idle-delay 0.6) (lsp-idle-delay 0.6)
(lsp-rust-analyzer-server-display-inlay-hints t)) (lsp-rust-analyzer-server-display-inlay-hints t)
:config
(lsp-register-client
(make-lsp-client :new-connection (lsp-tramp-connection "shellcheck")
:major-modes '(sh-mode)
:remote? t
:server-id 'shellcheck-remote)))
#+end_src #+end_src
I also want all the visual enhancements LSP can provide. I also want all the visual enhancements LSP can provide.