diff --git a/.gitignore b/.gitignore index b24012e..b1a69a1 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,8 @@ !nano/* !x11/** !git/* +!vscode/* + !starship.toml #directory catchall !*/ diff --git a/vscode/extensions.txt b/vscode/extensions.txt new file mode 100644 index 0000000..b565588 --- /dev/null +++ b/vscode/extensions.txt @@ -0,0 +1,3 @@ +dracula-theme.theme-dracula +golang.go +hashicorp.terraform diff --git a/vscode/settings.json b/vscode/settings.json new file mode 100644 index 0000000..9b350d5 --- /dev/null +++ b/vscode/settings.json @@ -0,0 +1,115 @@ +{ + "go.formatTool": "goimports", + "go.useLanguageServer": true, + "go.lintTool": "golangci-lint", + "window.zoomLevel": 0, + "editor.tokenColorCustomizations": { + "textMateRules": [ + { + "scope": "text.html.markdown.journal.task.open.bullet", + "settings": { + "foreground": "#FFFF00" + } + }, + { + "scope": "text.html.markdown.journal.task.open.marker", + "settings": { + "foreground": "#FFFF00" + } + }, + { + "scope": "text.html.markdown.journal.task.open.keyword", + "settings": { + "fontStyle": "italic" + } + }, + { + "scope": "text.html.markdown.journal.task.open.text", + "settings": {} + }, + { + "scope": "text.html.markdown.journal.task.completed.keyword", + "settings": { + "fontStyle": "italic" + } + }, + { + "scope": "text.html.markdown.journal.task.completed.marker", + "settings": { + "foreground": "#AAAAAA" + } + }, + { + "scope": "text.html.markdown.journal.task.completed.text", + "settings": { + "foreground": "#AAAAAA" + } + }, + { + "scope": "text.html.markdown.journal.task.completed.bullet", + "settings": { + "foreground": "#FFFF00" + } + }, + { + "scope": "text.html.markdown.journal.memo.keyword", + "settings": { + "fontStyle": "italic" + } + }, + { + "scope": "text.html.markdown.journal.memo.bullet", + "settings": { + "foreground": "#FFFF00" + } + }, + { + "scope": "text.html.markdown.journal.scope", + "settings": { + "foreground": "#FFFF00" + } + }, + { + "scope": "text.html.markdown.journal.link.keyword", + "settings": { + "fontStyle": "italic" + } + }, + { + "scope": "text.html.markdown.journal.link.bullet", + "settings": { + "foreground": "#FFFF00" + } + } + ] + }, + "go.toolsManagement.autoUpdate": true, + "editor.suggestSelection": "first", + "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue", + "files.exclude": { + "**/.classpath": true, + "**/.project": true, + "**/.settings": true, + "**/.factorypath": true + }, + "go.coverOnSave": true, + "go.coverageDecorator": { + "coveredHighlightColor": "rgba(64,128,128,0.5)", + "uncoveredHighlightColor": "rgba(128,64,64,0.25)", + "coveredGutterStyle": "blockgreen", + "uncoveredGutterStyle": "blockred" + }, + "go.coverOnSingleTest": true, + "go.alternateTools": { + + }, + "javascript.format.enable": false, + "[html]": { + "editor.defaultFormatter": "vscode.html-language-features" + }, + "[css]": { + "editor.defaultFormatter": "vscode.css-language-features" + }, + "editor.fontFamily": "MesloLGSDZNerdFontCompleteM-Regular, Menlo, Monaco, 'Courier New', monospace", + "workbench.colorTheme": "Dracula" +} \ No newline at end of file diff --git a/vscode/setup.sh b/vscode/setup.sh new file mode 100755 index 0000000..c293519 --- /dev/null +++ b/vscode/setup.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash -eo pipefail + +ln -s ~/.vscode/settings.json ~/Library/Application Support/Code/User/settings.json + +while read p; do + code --install-extension $p +done