shell.nix: update formatter and language servers

This commit is contained in:
Gabriel Arazas 2025-01-29 12:42:04 +08:00
parent dab0e3aba6
commit f2f7a9e221
2 changed files with 6 additions and 1 deletions

View File

@ -10,12 +10,13 @@ mkShell {
# Language servers for... # Language servers for...
lua-language-server # ...Lua. lua-language-server # ...Lua.
pyright # ...Python. pyright # ...Python.
rnix-lsp # ...Nix. nixd # ...Nix.
# Formatters for... # Formatters for...
treefmt # ...everything under the sun. treefmt # ...everything under the sun.
stylua # ...Lua. stylua # ...Lua.
nixpkgs-fmt # ...Nix. nixpkgs-fmt # ...Nix.
black # ...Python. black # ...Python.
nufmt # ... Nushell.
]; ];
} }

View File

@ -1,3 +1,7 @@
[formatter.lua] [formatter.lua]
command = "stylua" command = "stylua"
includes = [ "*.lua" ] includes = [ "*.lua" ]
[formatter.nu]
command = "nufmt"
includes = [ "*.nu" ]