feat: bump nix-direnv and tweak vscode nix LSP settings

This commit is contained in:
steveej 2024-08-17 17:19:34 +02:00
parent c66a7c65c2
commit 08cc57ada1
2 changed files with 19 additions and 6 deletions

6
.envrc
View file

@ -1,5 +1,5 @@
if ! has nix_direnv_version || ! nix_direnv_version 3.0.4; then if ! has nix_direnv_version || ! nix_direnv_version 3.0.5; then
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/3.0.4/direnvrc" "sha256-DzlYZ33mWF/Gs8DDeyjr8mnVmQGx7ASYqA5WlxwvBG4=" source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/3.0.5/direnvrc" "sha256-RuwIS+QKFj/T9M2TFXScjBsLR6V3A17YVoEW/Q6AZ1w="
fi fi
use_flake .#develop use flake .#develop

19
.vscode/settings.json vendored
View file

@ -1,6 +1,19 @@
{ {
"nixEnvSelector.nixFile": "${workspaceRoot}/shell.nix", "nix.serverSettings": {
"[nix]": { // settings for 'nil' LSP
"editor.defaultFormatter": "jnoortheen.nix-ide" "nil": {
"autoArchive": true,
"diagnostics": {
"ignored": [
"unused_binding",
"unused_with"
]
},
"formatting": {
"command": [
"alejandra",
]
}
}
}, },
} }