Initial commit
This commit is contained in:
64
modules/hm/vscode/default.nix
Normal file
64
modules/hm/vscode/default.nix
Normal file
@@ -0,0 +1,64 @@
|
||||
{
|
||||
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"
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user