Fix stupid config stopping nixos treesitter from working
This commit is contained in:
parent
a82a26f233
commit
f97826cc3c
8
init.el
8
init.el
|
@ -271,11 +271,13 @@
|
|||
(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 '(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-json-mode . json-ts-mode))
|
||||
:custom
|
||||
(treesit-extra-load-path (list (expand-file-name "tree-sitter-module/dist/"
|
||||
user-emacs-directory))))
|
||||
:config
|
||||
(unless my-is-nixos
|
||||
(add-to-list 'treesit-extra-load-path (expand-file-name "tree-sitter-module/dist/"
|
||||
user-emacs-directory))))
|
||||
|
||||
(use-package dtrt-indent
|
||||
:demand t
|
||||
|
|
Loading…
Reference in a new issue