diff --git a/home-manager/modules/emacs/config.org b/home-manager/modules/emacs/config.org index 7996d02..96666db 100644 --- a/home-manager/modules/emacs/config.org +++ b/home-manager/modules/emacs/config.org @@ -1682,6 +1682,14 @@ Dhall is a programmable configuration language that you can think of as: JSON + (use-package nushell-ts-mode) #+end_src +Register =nushell= LSP with eglot + +#+begin_src emacs-lisp + (with-eval-after-load 'eglot + (add-to-list 'eglot-server-programs + '(nushell-ts-mode . ("nu" "--lsp")))) +#+end_src + * Org ** Main org setup diff --git a/home-manager/modules/emacs/default.nix b/home-manager/modules/emacs/default.nix index ca61d7e..fed5091 100644 --- a/home-manager/modules/emacs/default.nix +++ b/home-manager/modules/emacs/default.nix @@ -63,7 +63,14 @@ with lib; let tree-sitter-markdown tree-sitter-markdown-inline tree-sitter-nix - tree-sitter-nu + (tree-sitter-nu.overrideAttrs (_prevAttr: { + src = pkgs.fetchFromGitHub { + owner = "nushell"; + repo = "tree-sitter-nu"; + rev = "307559b6a3885ef0c55bcd5e23e9e164a7ce03bd"; + sha256 = "RuvR2Yb2CTxpxyXgr+2uUQa9N75sIhYlS9moyedZo8A="; + }; + })) tree-sitter-pioasm tree-sitter-python tree-sitter-query