mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-29 14:33:34 -05:00
refactor(sh): remove tree-sitter support
bash-ts-mode is inferior to shell-script-mode's syntax highlighting and no other *-ts-mode modes are available for other shells (though, there *are* powershell and nushell ts-modes; I'll investigate those later).
This commit is contained in:
@@ -23,9 +23,6 @@ Fish script) to Doom Emacs.
|
|||||||
(supports bash-language-server).
|
(supports bash-language-server).
|
||||||
- +powershell ::
|
- +powershell ::
|
||||||
Add syntax highlighting for Powershell script files (=.ps1= and =.psm1=).
|
Add syntax highlighting for Powershell script files (=.ps1= and =.psm1=).
|
||||||
- +tree-sitter ::
|
|
||||||
Leverages tree-sitter for better syntax highlighting and structural text
|
|
||||||
editing. Requires [[doom-module::tools tree-sitter]].
|
|
||||||
|
|
||||||
** Packages
|
** Packages
|
||||||
- [[doom-package:company-shell]] if [[doom-module::completion company]]
|
- [[doom-package:company-shell]] if [[doom-module::completion company]]
|
||||||
|
@@ -37,9 +37,6 @@
|
|||||||
(when (modulep! +lsp)
|
(when (modulep! +lsp)
|
||||||
(add-hook 'sh-mode-local-vars-hook #'lsp! 'append))
|
(add-hook 'sh-mode-local-vars-hook #'lsp! 'append))
|
||||||
|
|
||||||
(when (modulep! +tree-sitter)
|
|
||||||
(add-hook 'sh-mode-local-vars-hook #'tree-sitter! 'append))
|
|
||||||
|
|
||||||
(setq sh-indent-after-continuation 'always)
|
(setq sh-indent-after-continuation 'always)
|
||||||
|
|
||||||
;; [pedantry intensifies]
|
;; [pedantry intensifies]
|
||||||
|
@@ -7,7 +7,3 @@
|
|||||||
(when (modulep! :editor format)
|
(when (modulep! :editor format)
|
||||||
(unless (executable-find "shfmt")
|
(unless (executable-find "shfmt")
|
||||||
(warn! "Couldn't find shfmt. Code formatting will not work.")))
|
(warn! "Couldn't find shfmt. Code formatting will not work.")))
|
||||||
|
|
||||||
(assert! (or (modulep! -tree-sitter)
|
|
||||||
(modulep! :tools tree-sitter))
|
|
||||||
"This module requires (:tools tree-sitter)")
|
|
||||||
|
Reference in New Issue
Block a user