Remove nix from eglot ensure modes

Enable nix-prettify-global-mode, load nix-repl with nix-mode
This commit is contained in:
Evie Litherland-Smith 2024-02-20 09:41:40 +00:00
parent e5450165c0
commit 38658dbc8e

View file

@ -63,11 +63,10 @@ Set treesit to fontify all elements, default was 3 (out of 4)
("C-c c C-e" . eglot-reconnect) ("C-c c C-e" . eglot-reconnect)
("C-c c a" . eglot-code-actions) ("C-c c a" . eglot-code-actions)
("C-c c r" . eglot-rename)) ("C-c c r" . eglot-rename))
:hook (((nix-mode :hook (((python-base-mode
rust-ts-mode
fortran-mode fortran-mode
f90-mode f90-mode
python-base-mode
rust-ts-mode
js-ts-mode) js-ts-mode)
. eglot-ensure) . eglot-ensure)
(eglot-managed-mode . (lambda () (add-to-list 'flymake-diagnostic-functions #'eglot-flymake-backend)))) (eglot-managed-mode . (lambda () (add-to-list 'flymake-diagnostic-functions #'eglot-flymake-backend))))
@ -248,7 +247,10 @@ Set treesit to fontify all elements, default was 3 (out of 4)
:mode "\\.nix\\'" :mode "\\.nix\\'"
:config :config
(require 'nix) (require 'nix)
(require 'nix-flake)) (require 'nix-flake)
(require 'nix-repl)
(require 'nix-store)
(nix-prettify-global-mode +1))
#+end_src #+end_src
** Nushell ** Nushell