emacs: Use official nushell tree-sitter grammar, enable nushell LSP
This commit is contained in:
parent
330d854c4b
commit
6b5c5e5097
2 changed files with 16 additions and 1 deletions
|
@ -1682,6 +1682,14 @@ Dhall is a programmable configuration language that you can think of as: JSON +
|
||||||
(use-package nushell-ts-mode)
|
(use-package nushell-ts-mode)
|
||||||
#+end_src
|
#+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
|
* Org
|
||||||
|
|
||||||
** Main org setup
|
** Main org setup
|
||||||
|
|
|
@ -63,7 +63,14 @@ with lib; let
|
||||||
tree-sitter-markdown
|
tree-sitter-markdown
|
||||||
tree-sitter-markdown-inline
|
tree-sitter-markdown-inline
|
||||||
tree-sitter-nix
|
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-pioasm
|
||||||
tree-sitter-python
|
tree-sitter-python
|
||||||
tree-sitter-query
|
tree-sitter-query
|
||||||
|
|
Loading…
Add table
Reference in a new issue