Add vscodium artifacts for sync'ing settings and extensions

This commit is contained in:
2025-11-13 13:46:29 -05:00
parent 87c761a4bf
commit f6e49f3610
4 changed files with 70 additions and 0 deletions

View File

@@ -32,6 +32,17 @@ scripts:
cp starship.toml ~/.config/starship.toml
sed -i "s/#XXXXXX/$(STARSHIP_COLOR)/g" ~/.config/starship.toml
.PHONY: vscodium
vscodium:
mkdir --parents ~/.config/VSCodium/User
cp vscodium/settings.json ~/.config/VSCodium/User/settings.json
cp vscodium/keybindings.json ~/.config/VSCodium/User/keybindings.json
toolbox create --image $(REPOSITORY):latest vscodium-setup-temp
toolbox run --container vscodium-setup-temp bash $(PWD)/vscodium/extensions.bash
podman stop vscodium-setup-temp
podman rm vscodium-setup-temp
install: container scripts
systemctl --user enable podman.sock --now
systemctl --user enable podman.service --now

18
vscodium/extensions.bash Normal file
View File

@@ -0,0 +1,18 @@
#!/usr/bin/env bash
EXTENSIONS=(
"gamunu.opentofu"
"tamasfe.even-better-toml"
"samuelcolvin.jinjahtml"
"yzhang.markdown-all-in-one"
"streetsidesoftware.code-spell-checker"
"github.vscode-github-actions"
"redhat.vscode-yaml"
"ms-python.debugpy"
"ms-python.python"
"detachhead.basedpyright"
)
for ext in "${EXTENSIONS[@]}"; do
codium --install-extension "$ext" --force
done

13
vscodium/keybindings.json Normal file
View File

@@ -0,0 +1,13 @@
// Place your key bindings in this file to override the defaults
[
{
"key": "ctrl+shift+o",
"command": "workbench.action.files.openFolder",
"when": "openFolderWorkspaceSupport"
},
{
"key": "ctrl+k ctrl+o",
"command": "-workbench.action.files.openFolder",
"when": "openFolderWorkspaceSupport"
}
]

28
vscodium/settings.json Normal file
View File

@@ -0,0 +1,28 @@
{
"workbench.activityBar.location": "hidden",
"workbench.startupEditor": "none",
"workbench.iconTheme": "vs-minimal",
"explorer.autoReveal": "focusNoScroll",
"explorer.confirmDragAndDrop": false,
"update.showReleaseNotes": false,
"telemetry.telemetryLevel": "crash",
"security.workspace.trust.untrustedFiles": "open",
"workbench.tree.indent": 10,
"redhat.telemetry.enabled": false,
"cSpell.userWords": [
"enpaul",
"freedomofpress",
"venv",
"Zizmor"
],
"python.missingPackage.severity": "Warning",
"[dockercompose]": {
"editor.insertSpaces": true,
"editor.tabSize": 2,
"editor.autoIndent": "advanced",
"editor.defaultFormatter": "redhat.vscode-yaml"
},
"[github-actions-workflow]": {
"editor.defaultFormatter": "redhat.vscode-yaml"
}
}