From 79d96e3c605b09e12ad5c151a82d943c05e8cf1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Eug=C3=AAnio?= Date: Thu, 22 Aug 2024 18:05:40 -0300 Subject: [PATCH] vscode: fix nix formatter --- user/vscode/settings.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/user/vscode/settings.json b/user/vscode/settings.json index 899d453..0b8f692 100644 --- a/user/vscode/settings.json +++ b/user/vscode/settings.json @@ -26,6 +26,18 @@ "continue.enableTabAutocomplete": true, "intelephense.completion.fullyQualifyGlobalConstantsAndFunctions": true, "diffEditor.hideUnchangedRegions.enabled": true, + + "nix.enableLanguageServer": true, + "nix.serverPath": "nil", "nix.formatterPath": "nixfmt", + "nix.serverSettings": { + "nil": { + "formatting": { + "command": [ + "nixfmt" + ] + } + } + }, "explorer.confirmDelete": false, }