feat: bump nix-direnv and tweak vscode nix LSP settings
This commit is contained in:
parent
c66a7c65c2
commit
08cc57ada1
2 changed files with 19 additions and 6 deletions
6
.envrc
6
.envrc
|
@ -1,5 +1,5 @@
|
|||
if ! has nix_direnv_version || ! nix_direnv_version 3.0.4; then
|
||||
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/3.0.4/direnvrc" "sha256-DzlYZ33mWF/Gs8DDeyjr8mnVmQGx7ASYqA5WlxwvBG4="
|
||||
if ! has nix_direnv_version || ! nix_direnv_version 3.0.5; then
|
||||
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/3.0.5/direnvrc" "sha256-RuwIS+QKFj/T9M2TFXScjBsLR6V3A17YVoEW/Q6AZ1w="
|
||||
fi
|
||||
|
||||
use_flake .#develop
|
||||
use flake .#develop
|
||||
|
|
19
.vscode/settings.json
vendored
19
.vscode/settings.json
vendored
|
@ -1,6 +1,19 @@
|
|||
{
|
||||
"nixEnvSelector.nixFile": "${workspaceRoot}/shell.nix",
|
||||
"[nix]": {
|
||||
"editor.defaultFormatter": "jnoortheen.nix-ide"
|
||||
"nix.serverSettings": {
|
||||
// settings for 'nil' LSP
|
||||
"nil": {
|
||||
"autoArchive": true,
|
||||
"diagnostics": {
|
||||
"ignored": [
|
||||
"unused_binding",
|
||||
"unused_with"
|
||||
]
|
||||
},
|
||||
"formatting": {
|
||||
"command": [
|
||||
"alejandra",
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue