fix(javascript): guard evil-textobj-tree-sitter setting
For non-evil users.
This commit is contained in:
parent
e855c2d132
commit
5eed2e9e61
1 changed files with 7 additions and 7 deletions
|
@ -129,14 +129,14 @@
|
||||||
(after! lsp-mode
|
(after! lsp-mode
|
||||||
(add-to-list 'lsp--formatting-indent-alist '(typescript-tsx-mode . typescript-indent-level))))
|
(add-to-list 'lsp--formatting-indent-alist '(typescript-tsx-mode . typescript-indent-level))))
|
||||||
(when (featurep! +tree-sitter)
|
(when (featurep! +tree-sitter)
|
||||||
|
(after! evil-textobj-tree-sitter
|
||||||
|
(pushnew! evil-textobj-tree-sitter-major-mode-language-alist '(typescript-tsx-mode . "tsx")))
|
||||||
(after! tree-sitter
|
(after! tree-sitter
|
||||||
(pushnew! tree-sitter-major-mode-language-alist '(typescript-tsx-mode . tsx))
|
(pushnew! tree-sitter-major-mode-language-alist '(typescript-tsx-mode . tsx)))
|
||||||
(pushnew! evil-textobj-tree-sitter-major-mode-language-alist '(typescript-tsx-mode . "tsx"))
|
;; HACK: the tsx grammer doesn't work with the hightlighting provided by
|
||||||
|
;; font-lock-keywords. See emacs-tree-sitter/tree-sitter-langs#23
|
||||||
;; HACK: the tsx grammer doesn't work with the hightlighting provided by
|
(setq-hook! 'typescript-tsx-mode-hook
|
||||||
;; font-lock-keywords. See emacs-tree-sitter/tree-sitter-langs#23
|
tree-sitter-hl-use-font-lock-keywords nil)))
|
||||||
(setq-hook! 'typescript-tsx-mode-hook
|
|
||||||
tree-sitter-hl-use-font-lock-keywords nil))))
|
|
||||||
|
|
||||||
(set-docsets! '(typescript-mode typescript-tsx-mode)
|
(set-docsets! '(typescript-mode typescript-tsx-mode)
|
||||||
:add "TypeScript" "AngularTS")
|
:add "TypeScript" "AngularTS")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue