Files
FxNet/modules/hm/vscode/default.nix
2025-09-01 14:21:12 +03:00

65 lines
1.3 KiB
Nix

{
pkgs,
lib,
config,
...
}:
{
programs.vscode = {
package = pkgs.vscodium;
profiles = {
default = {
extensions = (import ./extensions { inherit pkgs config lib; });
globalSnippets = {
fixme = {
body = [
"$LINE_COMMENT FIXME: $0"
];
description = "Insert a FIXME remark";
prefix = [
"fixme"
];
};
todo = {
body = [
"$LINE_COMMENT TODO: $0"
];
description = "Insert a TODO remark";
prefix = [
"todo"
];
};
};
languageSnippets = {
go = { };
};
keybindings = [
# {
# key = "ctrl+c";
# command = "editor.action.clipboardCopyAction";
# when = "textInputFocus";
# }
];
userTasks = { };
# userSettings = builtins.fromJSON (builtins.readFile ./settings.json);
};
};
};
xdg.mimeApps.defaultApplications = {
"x-scheme-handler/vscodium" = [
"codium-url-handler.desktop"
];
"x-scheme-handler/codium" = [
"codium-url-handler.desktop"
];
"x-scheme-handler/vscode" = [
"codium-url-handler.desktop"
];
};
}