merge: pull request #5401 from jeetelongname/tree-sitter

This commit is contained in:
Henrik Lissner 2022-06-17 22:55:42 +02:00 committed by GitHub
commit 173396a963
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
52 changed files with 515 additions and 24 deletions

View file

@ -30,3 +30,6 @@
"f" #'zig-format-buffer
"r" #'zig-run
"t" #'zig-test-buffer))
(eval-when! (featurep! +tree-sitter)
(add-hook! 'zig-mode-local-vars-hook #'tree-sitter!))

View file

@ -5,6 +5,10 @@
(featurep! :tools lsp))
"This module requires (:tools lsp)")
(assert! (or (not (featurep! +tree-sitter))
(featurep! :tools tree-sitter))
"This module requires (:tools tree-sitter)")
(unless (executable-find "zig")
(warn! "Couldn't find zig binary"))