[Emacs] Automatically enable LSP for sh-mode, register remote client
Register remote shellcheck LSP server as a new LSP client
This commit is contained in:
		
							parent
							
								
									27c7bd52a5
								
							
						
					
					
						commit
						67916b1c9d
					
				@ -5599,6 +5599,7 @@ awesome!
 | 
			
		||||
  :hook ((c-mode          . lsp-deferred)
 | 
			
		||||
         (c++-mode        . lsp-deferred)
 | 
			
		||||
         (html-mode       . lsp-deferred)
 | 
			
		||||
         (sh-mode         . lsp-deferred)
 | 
			
		||||
         (lsp-mode        . lsp-enable-which-key-integration)
 | 
			
		||||
         (lsp-mode        . lsp-ui-mode))
 | 
			
		||||
  :commands (lsp lsp-deferred)
 | 
			
		||||
@ -5606,7 +5607,13 @@ awesome!
 | 
			
		||||
  (lsp-rust-analyzer-cargo-watch-command "clippy")
 | 
			
		||||
  (lsp-eldoc-render-all t)
 | 
			
		||||
  (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
 | 
			
		||||
 | 
			
		||||
I also want all the visual enhancements LSP can provide.
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user