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"
|
||||
];
|
||||
};
|
||||
}
|
||||
36
modules/hm/vscode/extensions/default.nix
Normal file
36
modules/hm/vscode/extensions/default.nix
Normal file
@@ -0,0 +1,36 @@
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
go ? true,
|
||||
nix ? true,
|
||||
...
|
||||
}:
|
||||
with pkgs.vscode-extensions;
|
||||
[
|
||||
dracula-theme.theme-dracula
|
||||
# vscodevim.vim
|
||||
yzhang.markdown-all-in-one
|
||||
(lib.optionals go golang.go)
|
||||
(lib.optionals nix jnoortheen.nix-ide)
|
||||
mkhl.direnv
|
||||
gitlab.gitlab-workflow
|
||||
(pkgs.vscode-utils.buildVscodeMarketplaceExtension {
|
||||
mktplcRef = {
|
||||
name = "vscode-docker";
|
||||
publisher = "ms-azuretools";
|
||||
version = "1.29.4";
|
||||
sha256 = "1nhrp43gh4pwsdy0d8prndx2l0mrczf1kirjl1figrmhcp7h4q4g";
|
||||
};
|
||||
})
|
||||
(pkgs.vscode-utils.buildVscodeMarketplaceExtension {
|
||||
mktplcRef = {
|
||||
name = "yandex-code-assist";
|
||||
publisher = "yandex";
|
||||
|
||||
version = "0.11.17";
|
||||
};
|
||||
vsix = builtins.path {
|
||||
path = ./yandex-code-assist.zip;
|
||||
};
|
||||
})
|
||||
]
|
||||
BIN
modules/hm/vscode/extensions/yandex-code-assist.zip
Normal file
BIN
modules/hm/vscode/extensions/yandex-code-assist.zip
Normal file
Binary file not shown.
199
modules/hm/vscode/settings.json
Normal file
199
modules/hm/vscode/settings.json
Normal file
@@ -0,0 +1,199 @@
|
||||
{
|
||||
"files.autoSave": "afterDelay",
|
||||
"chat.editor.fontSize": 16,
|
||||
"window.autoDetectHighContrast": false,
|
||||
"workbench.settings.applyToAllProfiles": [
|
||||
"window.autoDetectColorScheme",
|
||||
"editor.formatOnSave"
|
||||
],
|
||||
"git.autofetch": true,
|
||||
"editor.formatOnSave": true,
|
||||
"files.autoSaveWhenNoErrors": true,
|
||||
"go.coverOnSingleTestFile": true,
|
||||
"go.coverShowCounts": true,
|
||||
"go.formatTool": "gofmt",
|
||||
"go.installDependenciesWhenBuilding": true,
|
||||
"go.lintTool": "golangci-lint",
|
||||
"go.languageServerFlags": [],
|
||||
"workbench.colorTheme": "Dracula Theme Soft",
|
||||
"window.zoomLevel": 1.2,
|
||||
"editor.minimap.showSlider": "always",
|
||||
"editor.minimap.size": "fit",
|
||||
"go.editorContextMenuCommands": {
|
||||
"fillStruct": true,
|
||||
"removeTags": true,
|
||||
"testPackage": true,
|
||||
"testFile": true,
|
||||
"generateTestForFile": true,
|
||||
"generateTestForPackage": true,
|
||||
"benchmarkAtCursor": true
|
||||
},
|
||||
"go.testFlags": [
|
||||
"-race",
|
||||
"-v"
|
||||
],
|
||||
"go.toolsEnvVars": {},
|
||||
"go.toolsGopath": "",
|
||||
"gopls": {
|
||||
"ui.codelenses": {
|
||||
"tidy": true,
|
||||
"generate": true,
|
||||
"test": true,
|
||||
"vulncheck": true,
|
||||
"upgrade_dependency": true
|
||||
},
|
||||
"ui.completion.experimentalPostfixCompletions": true,
|
||||
"ui.semanticTokens": true
|
||||
},
|
||||
"git.allowForcePush": true,
|
||||
"git.branchPrefix": "sub-task/",
|
||||
"git.enableSmartCommit": true,
|
||||
"git.fetchOnPull": true,
|
||||
"git.followTagsWhenSync": true,
|
||||
"git.mergeEditor": true,
|
||||
"git.timeline.showUncommitted": true,
|
||||
"github.gitProtocol": "ssh",
|
||||
"telemetry.telemetryLevel": "all",
|
||||
"testing.coverageToolbarEnabled": true,
|
||||
"go.testEnvVars": {},
|
||||
"gitlab.duoCodeSuggestions.enabled": false,
|
||||
"gitlab.duoCodeSuggestions.enabledSupportedLanguages": {
|
||||
"c": false,
|
||||
"cpp": false,
|
||||
"csharp": false,
|
||||
"go": false,
|
||||
"handlebars": false,
|
||||
"haml": false,
|
||||
"java": false,
|
||||
"javascript": false,
|
||||
"javascriptreact": false,
|
||||
"kotlin": false,
|
||||
"python": false,
|
||||
"php": false,
|
||||
"ruby": false,
|
||||
"rust": false,
|
||||
"scala": false,
|
||||
"shellscript": false,
|
||||
"sql": false,
|
||||
"swift": false,
|
||||
"typescript": false,
|
||||
"typescriptreact": false,
|
||||
"svelte": false,
|
||||
"terraform": false,
|
||||
"terragrunt": false,
|
||||
"vue": false
|
||||
},
|
||||
"redhat.telemetry.enabled": true,
|
||||
"go.testTags": null,
|
||||
"diffEditor.renderSideBySide": true,
|
||||
"diffEditor.experimental.showMoves": true,
|
||||
"docker.composeCommand": "docker compose",
|
||||
"docker.contexts.showInStatusBar": true,
|
||||
"workbench.editor.autoLockGroups": {
|
||||
"mainThreadWebview-markdown.preview": true
|
||||
},
|
||||
"workbench.editor.pinnedTabsOnSeparateRow": true,
|
||||
"workbench.editor.sharedViewState": true,
|
||||
"workbench.editor.wrapTabs": true,
|
||||
"window.menuBarVisibility": "toggle",
|
||||
"window.density.editorTabHeight": "compact",
|
||||
"workbench.tree.renderIndentGuides": "always",
|
||||
"workbench.settings.openDefaultSettings": true,
|
||||
"explorer.confirmDelete": false,
|
||||
"git.confirmSync": false,
|
||||
"gitlab.duoChat.enabled": false,
|
||||
"gitlab.duoCodeSuggestions.openTabsContext": false,
|
||||
"gitlab.duo.enabledWithoutGitlabProject": false,
|
||||
"gitlab.customQueries": [
|
||||
{
|
||||
"name": "Issues assigned to me",
|
||||
"type": "issues",
|
||||
"scope": "assigned_to_me",
|
||||
"state": "opened",
|
||||
"noItemText": "No issues assigned to you."
|
||||
},
|
||||
{
|
||||
"name": "Issues created by me",
|
||||
"type": "issues",
|
||||
"scope": "created_by_me",
|
||||
"state": "opened",
|
||||
"noItemText": "No issues created by you."
|
||||
},
|
||||
{
|
||||
"name": "Merge requests assigned to me",
|
||||
"type": "merge_requests",
|
||||
"scope": "assigned_to_me",
|
||||
"state": "opened",
|
||||
"noItemText": "No merge requests assigned to you."
|
||||
},
|
||||
{
|
||||
"name": "Merge requests I'm reviewing",
|
||||
"type": "merge_requests",
|
||||
"reviewer": "<current_user>",
|
||||
"state": "opened",
|
||||
"noItemText": "No merge requests for you to review."
|
||||
},
|
||||
{
|
||||
"name": "Merge requests created by me",
|
||||
"type": "merge_requests",
|
||||
"scope": "created_by_me",
|
||||
"state": "opened",
|
||||
"noItemText": "No merge requests created by you."
|
||||
},
|
||||
{
|
||||
"name": "All project merge requests",
|
||||
"type": "merge_requests",
|
||||
"scope": "all",
|
||||
"state": "opened",
|
||||
"noItemText": "The project has no merge requests"
|
||||
}
|
||||
],
|
||||
"nix.serverPath": "/etc/profiles/per-user/fenix/bin/nil",
|
||||
"nix.formatterPath": "/etc/profiles/per-user/fenix/bin/nixfmt",
|
||||
"nix.serverSettings": {
|
||||
"nil": {
|
||||
"formatting": {
|
||||
"command": [
|
||||
"nixfmt"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"markdown-mermaid.lightModeTheme": "forest",
|
||||
"extensions.experimental.affinity": {
|
||||
"asvetliakov.vscode-neovim": 1
|
||||
},
|
||||
"workbench.preferredDarkColorTheme": "Catppuccin Macchiato",
|
||||
"window.autoDetectColorScheme": true,
|
||||
"go.diagnostic.vulncheck": "Imports",
|
||||
"go.inlayHints.compositeLiteralFields": true,
|
||||
"go.inlayHints.constantValues": true,
|
||||
"editor.semanticHighlighting.enabled": true,
|
||||
"regroupImports.organization": "gitlab.ptsecurity.com",
|
||||
"go.coverMode": "atomic",
|
||||
"nix.enableLanguageServer": true,
|
||||
"window.newWindowProfile": "Default",
|
||||
"protoc": {},
|
||||
"go.buildTags": "integration",
|
||||
"workbench.preferredLightColorTheme": "Catppuccin Latte",
|
||||
"cSpell.userWords": [
|
||||
"логгер",
|
||||
"логгирования",
|
||||
"Appender",
|
||||
"fenix",
|
||||
"Prepender",
|
||||
"zaptest"
|
||||
],
|
||||
"cSpell.spellCheckOnlyWorkspaceFiles": true,
|
||||
"chat.commandCenter.enabled": false,
|
||||
"catppuccin.accentColor": "flamingo",
|
||||
"rest-client.showResponseInDifferentTab": true,
|
||||
"cSpell.language": "en,ru",
|
||||
"cSpell.ignoreRegExpList": [
|
||||
"/\\/\\/nolint:[a-z]+/g",
|
||||
"/import \\([^)]+\\)/g"
|
||||
],
|
||||
"cSpell.enabledFileTypes": {
|
||||
"ignore": false
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user