emacs: Use official nushell tree-sitter grammar, enable nushell LSP

This commit is contained in:
Erwin Boskma 2023-11-20 17:05:09 +01:00
parent 330d854c4b
commit 6b5c5e5097
Signed by: erwin
SSH key fingerprint: SHA256:9LmFDe1C6jSrEyqxxvX8NtJBmcbB105XoqyUZF092bg
2 changed files with 16 additions and 1 deletions

View file

@ -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

View file

@ -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