Add lsp support to sh-mode.

This commit is contained in:
Dinko 2020-01-07 14:50:13 +02:00
parent b5a279311c
commit 3530f19ef5
2 changed files with 8 additions and 0 deletions

View file

@ -17,6 +17,9 @@
(set-electric! 'sh-mode :words '("else" "elif" "fi" "done" "then" "do" "esac" ";;"))
(set-repl-handler! 'sh-mode #'+sh/open-repl)
(when (featurep! +lsp)
(add-hook 'sh-mode-hook #'lsp!))
(setq sh-indent-after-continuation 'always)
;; [pedantry intensifies]
@ -52,6 +55,7 @@
(use-package! company-shell
:when (featurep! :completion company)
:unless (featurep! +lsp)
:after sh-script
:config
(set-company-backend! 'sh-mode '(company-shell company-files))