Fix stupid config stopping nixos treesitter from working
This commit is contained in:
parent
a82a26f233
commit
f97826cc3c
6
init.el
6
init.el
|
@ -271,10 +271,12 @@
|
||||||
(add-to-list 'major-mode-remap-alist '(java-mode . java-ts-mode))
|
(add-to-list 'major-mode-remap-alist '(java-mode . java-ts-mode))
|
||||||
(add-to-list 'major-mode-remap-alist '(python-mode . python-ts-mode))
|
(add-to-list 'major-mode-remap-alist '(python-mode . python-ts-mode))
|
||||||
(add-to-list 'major-mode-remap-alist '(ruby-mode . ruby-ts-mode))
|
(add-to-list 'major-mode-remap-alist '(ruby-mode . ruby-ts-mode))
|
||||||
|
(add-to-list 'major-mode-remap-alist '(html-mode . html-ts-mode))
|
||||||
(add-to-list 'major-mode-remap-alist '(js-mode . js-ts-mode))
|
(add-to-list 'major-mode-remap-alist '(js-mode . js-ts-mode))
|
||||||
(add-to-list 'major-mode-remap-alist '(js-json-mode . json-ts-mode))
|
(add-to-list 'major-mode-remap-alist '(js-json-mode . json-ts-mode))
|
||||||
:custom
|
:config
|
||||||
(treesit-extra-load-path (list (expand-file-name "tree-sitter-module/dist/"
|
(unless my-is-nixos
|
||||||
|
(add-to-list 'treesit-extra-load-path (expand-file-name "tree-sitter-module/dist/"
|
||||||
user-emacs-directory))))
|
user-emacs-directory))))
|
||||||
|
|
||||||
(use-package dtrt-indent
|
(use-package dtrt-indent
|
||||||
|
|
Loading…
Reference in a new issue