From f2f7a9e221635e7e857b96ced7d651fc8e059a66 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Wed, 29 Jan 2025 12:42:04 +0800 Subject: [PATCH] shell.nix: update formatter and language servers --- shell.nix | 3 ++- treefmt.toml | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/shell.nix b/shell.nix index d69c0ec..8d88765 100644 --- a/shell.nix +++ b/shell.nix @@ -10,12 +10,13 @@ mkShell { # Language servers for... lua-language-server # ...Lua. pyright # ...Python. - rnix-lsp # ...Nix. + nixd # ...Nix. # Formatters for... treefmt # ...everything under the sun. stylua # ...Lua. nixpkgs-fmt # ...Nix. black # ...Python. + nufmt # ... Nushell. ]; } diff --git a/treefmt.toml b/treefmt.toml index 06a5cc9..5ecae39 100644 --- a/treefmt.toml +++ b/treefmt.toml @@ -1,3 +1,7 @@ [formatter.lua] command = "stylua" includes = [ "*.lua" ] + +[formatter.nu] +command = "nufmt" +includes = [ "*.nu" ]