2022-10-20 04:03:56 +00:00
|
|
|
(require 'util-tree-sitter)
|
|
|
|
|
2023-05-27 17:48:18 +00:00
|
|
|
(use-package bash-ts-mode
|
2022-10-20 04:03:56 +00:00
|
|
|
:ensure nil
|
2023-09-09 05:44:01 +00:00
|
|
|
:commands (bash-ts-mode)
|
2023-09-14 18:25:42 +00:00
|
|
|
:hook (
|
|
|
|
(bash-ts-mode . (lambda ()
|
|
|
|
(flymake-mode +1)
|
|
|
|
)))
|
2023-05-27 17:48:18 +00:00
|
|
|
:init
|
|
|
|
(add-to-list 'major-mode-remap-alist '(sh-mode . bash-ts-mode))
|
|
|
|
(add-to-list 'treesit-language-source-alist '(bash "https://github.com/tree-sitter/tree-sitter-bash"))
|
|
|
|
(unless (treesit-ready-p 'bash) (treesit-install-language-grammar 'bash))
|
2022-10-20 04:03:56 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
(provide 'lang-bash)
|