Refactor vscode language handling

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2025-02-13 10:21:37 +00:00
parent 05e04268da
commit 97a042adcd
22 changed files with 235 additions and 50 deletions

View File

@@ -2,25 +2,24 @@
user ? throw "user argument is required",
home ? throw "home argument is required",
}:
{ pkgs, ... }:
{ ... }:
{
home-manager.users.${user} = {
programs.vscode = {
extensions = with pkgs.vscode-extensions; [
github.copilot
github.copilot-chat
];
home-manager.users.${user}.programs.vscode = {
copilot.enable = true;
userSettings = {
"github.copilot.enable" = {
"*" = true;
"plaintext" = true;
"markdown" = true;
};
"chat.editing.alwaysSaveWithGeneratedChanges" = true;
};
languages = {
c.enable = true;
go.enable = true;
java.enable = true;
jinja.enable = true;
lua.enable = true;
markdown.enable = true;
nix.enable = true;
python.enable = true;
rest.enable = true;
sas.enable = true;
typescript.enable = true;
yaml.enable = true;
};
imports = [ ./langs/sas ];
};
}

View File

@@ -1,15 +0,0 @@
{ pkgs, ... }:
{
programs.vscode = {
extensions = with pkgs.vscode-extensions; [
sas.sas-lsp
];
userSettings = {
"SAS.connectionProfiles" = {
activeProfile = "";
profiles = { };
};
};
};
}