branch: externals/bicep-ts-mode
commit 4f91ce2a7043db218ad75accf3a42e436dca5825
Author: Kevin Brubeck Unhammer <[email protected]>
Commit: Kevin Brubeck Unhammer <[email protected]>
On mode activation, show how to install treesit grammar if missing
---
bicep-ts-mode.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/bicep-ts-mode.el b/bicep-ts-mode.el
index 19e1f2e9b5..d3fa6510d7 100644
--- a/bicep-ts-mode.el
+++ b/bicep-ts-mode.el
@@ -160,7 +160,8 @@ Return nil if there is no name or if NODE is not a defun
node."
"Major mode for editing BICEP, powered by tree-sitter."
:group 'bicep-mode
- (when (treesit-ready-p 'bicep)
+ (if (not (treesit-ready-p 'bicep))
+ (message "Please run `M-x treesit-install-language-grammar RET bicep'")
(treesit-parser-create 'bicep)
;; Comments