Browse Source

Add rnix-lsp

main
parent
commit
5502114241
Signed by: chris GPG Key ID: 3025DCBD46F81C0F
  1. 3
      README.org
  2. 1
      modules/emacs.nix

3
README.org

@ -1250,9 +1250,10 @@ By default Emacs will ask you to enter 'Yes' or 'No' instead of 'Y' or 'N'. This
#+NAME: emacs-nix-mode-extras
#+BEGIN_SRC nix
pkgs.nixfmt
pkgs.rnix-lsp
#+END_SRC
[[https://github.com/nixos/nix-mode][Nix Mode]] is an [[https://gnu.org/software/emacs/][Emacs]] major mode for editing [[https://nixos.org/manual/nix/stable/][Nix]] expressions. This provides basic handling of =.nix= files. Syntax highlighting and indentation support using =SMIE= are provided.
[[https://github.com/nixos/nix-mode][Nix Mode]] is an [[https://gnu.org/software/emacs/][Emacs]] major mode for editing [[https://nixos.org/manual/nix/stable/][Nix]] expressions. This provides basic handling of =.nix= files. Syntax highlighting and indentation support using =SMIE= are provided. [[https:github.com/nix-community/rnix-lsp][rnix-lsp]] is a work-in-progress language server for Nix with syntax checking and basic completion.
#+NAME: emacs-nix-mode-package
#+BEGIN_SRC nix

1
modules/emacs.nix

@ -80,6 +80,7 @@ in {
pkgs.brightnessctl
pkgs.plantuml
pkgs.nixfmt
pkgs.rnix-lsp
(pkgs.writeShellScriptBin "dotfiles-theme" ''
${myEmacs}/bin/emacsclient --no-wait --eval '(json-encode (dotfiles/theme))' | sed "s/\\\\//g" | sed -e 's/^"//' -e 's/"$//'
'')

Loading…
Cancel
Save