From 9e78cd1d33b05fea802c19f5641b0f09fd592313 Mon Sep 17 00:00:00 2001 From: Marc Coquand Date: Sat, 11 May 2024 08:51:20 -0500 Subject: Updates --- emacs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'emacs') diff --git a/emacs b/emacs index 89f7000..cab00b5 100644 --- a/emacs +++ b/emacs @@ -268,10 +268,15 @@ ;; LSP (unless (package-installed-p 'tuareg) (package-install 'tuareg)) +(unless (package-installed-p 'nix-ts-mode) + (package-install 'nix-ts-mode)) +(require 'nix-ts-mode) +(add-to-list 'auto-mode-alist '("\\.nix\\'" . nix-ts-mode)) (use-package tree-sitter-langs :ensure t :defer t) +(global-tree-sitter-mode) (setq treesit-language-source-alist '((bash "https://github.com/tree-sitter/tree-sitter-bash") (cmake "https://github.com/uyha/tree-sitter-cmake") @@ -285,6 +290,7 @@ (ocaml "https://github.com/alemuller/tree-sitter-ocaml") (markdown "https://github.com/ikatyang/tree-sitter-markdown") (python "https://github.com/tree-sitter/tree-sitter-python") + (nix "https://github.com/tree-sitter/tree-sitter-nix") (toml "https://github.com/tree-sitter/tree-sitter-toml") (tsx "https://github.com/tree-sitter/tree-sitter-typescript" "master" "tsx/src") (typescript "https://github.com/tree-sitter/tree-sitter-typescript" "master" "typescript/src") -- cgit v1.2.3