Skip to content

Commit

Permalink
add vscode settings and keybindings
Browse files Browse the repository at this point in the history
  • Loading branch information
kucera-lukas committed May 13, 2023
1 parent 9705593 commit 0131ff7
Show file tree
Hide file tree
Showing 4 changed files with 335 additions and 0 deletions.
1 change: 1 addition & 0 deletions home/dot_config/git/ignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
.tool-versions
.cache
.coverage
.vscode
venv*
htmlcov
coverage.xml
Expand Down
92 changes: 92 additions & 0 deletions home/dot_config/private_Code/User/keybindings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
[
{
"key": "ctrl+shift+/",
"command": "editor.action.blockComment",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+shift+a",
"command": "-editor.action.blockComment",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "alt+left",
"command": "workbench.action.navigateBack",
"when": "canNavigateBack"
},
{
"key": "ctrl+alt+-",
"command": "-workbench.action.navigateBack",
"when": "canNavigateBack"
},
{
"key": "alt+right",
"command": "workbench.action.navigateForward",
"when": "canNavigateForward"
},
{
"key": "ctrl+shift+-",
"command": "-workbench.action.navigateForward",
"when": "canNavigateForward"
},
{
"key": "alt+left",
"command": "workbench.action.quickInputBack",
"when": "inQuickOpen"
},
{
"key": "ctrl+alt+-",
"command": "-workbench.action.quickInputBack",
"when": "inQuickOpen"
},
{
"key": "ctrl+shift+tab",
"command": "workbench.action.focusLeftGroup"
},
{
"key": "ctrl+k ctrl+left",
"command": "-workbench.action.focusLeftGroup"
},
{
"key": "ctrl+tab",
"command": "workbench.action.focusRightGroup"
},
{
"key": "ctrl+k ctrl+right",
"command": "-workbench.action.focusRightGroup"
},
{
"key": "ctrl+c ctrl+t",
"command": "editor.action.transformToTitlecase"
},
{
"key": "ctrl+c ctrl+l",
"command": "editor.action.transformToLowercase"
},
{
"key": "ctrl+c ctrl+u",
"command": "editor.action.transformToUppercase"
},
{
"key": "ctrl+c ctrl+s",
"command": "editor.action.transformToSnakecase"
},
{
"key": "ctrl+c ctrl+k",
"command": "editor.action.transformToKebabcase"
},
{
"key": "ctrl+c ctrl+c",
"command": "editor.action.transformToCamelcase"
},
{
"key": "ctrl+shift+alt+meta+enter",
"command": "github.copilot.generate",
"when": "editorTextFocus && github.copilot.activated && !inInteractiveInput && !interactiveEditorFocused"
},
{
"key": "ctrl+enter",
"command": "-github.copilot.generate",
"when": "editorTextFocus && github.copilot.activated && !inInteractiveInput && !interactiveEditorFocused"
}
]
236 changes: 236 additions & 0 deletions home/dot_config/private_Code/User/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,236 @@
{
"[rust]": {
"editor.defaultFormatter": "rust-lang.rust-analyzer"
},
"breadcrumbs.symbolPath": "last",
"cSpell.diagnosticLevel": "Hint",
"cSpell.enableFiletypes": ["md", "!json"],
"clangd.checkUpdates": true,
"code-runner.enableAppInsights": false,
"cppref.invertColorInDarkTheme": true,
"cppref.searchEngine": "Google",
"debug.autoExpandLazyVariables": true,
"debug.console.fontSize": 16,
"editor.accessibilitySupport": "off",
"editor.bracketPairColorization.enabled": true,
"editor.cursorBlinking": "phase",
"editor.cursorSmoothCaretAnimation": "on",
"editor.cursorSurroundingLines": 90,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.fontFamily": "JetBrains Mono, Fira code, Dank mono, 'Cascadia Code', monospace",
"editor.fontLigatures": true,
"editor.fontSize": 16,
"editor.fontWeight": "normal",
"editor.formatOnPaste": true,
"editor.formatOnSave": true,
"editor.formatOnSaveMode": "modificationsIfAvailable",
"editor.gotoLocation.alternativeDeclarationCommand": "editor.action.goToImplementation",
"editor.gotoLocation.alternativeDefinitionCommand": "editor.action.goToImplementation",
"editor.gotoLocation.alternativeImplementationCommand": "editor.action.goToImplementation",
"editor.gotoLocation.alternativeReferenceCommand": "editor.action.goToImplementation",
"editor.gotoLocation.alternativeTypeDefinitionCommand": "editor.action.goToImplementation",
"editor.gotoLocation.multipleDeclarations": "goto",
"editor.gotoLocation.multipleDefinitions": "goto",
"editor.gotoLocation.multipleImplementations": "goto",
"editor.gotoLocation.multipleReferences": "goto",
"editor.gotoLocation.multipleTypeDefinitions": "goto",
"editor.guides.bracketPairs": "active",
"editor.inlineSuggest.enabled": true,
"editor.insertSpaces": true,
"editor.lineHeight": 1.6,
"editor.lineNumbers": "on",
"editor.linkedEditing": true,
"editor.minimap.autohide": true,
"editor.minimap.enabled": true,
"editor.minimap.maxColumn": 80,
"editor.minimap.renderCharacters": false,
"editor.minimap.showSlider": "always",
"editor.renderLineHighlight": "all",
"editor.renderWhitespace": "boundary",
"editor.rulers": [79],
"editor.showFoldingControls": "always",
"editor.smoothScrolling": true,
"editor.suggestSelection": "first",
"editor.tabSize": 4,
"errorLens.borderRadius": "5px",
"errorLens.delay": 200,
"errorLens.followCursor": "allLinesExceptActive",
"errorLens.fontFamily": "Jetbrains mono",
"errorLens.fontSize": "15px",
"errorLens.fontWeight": "normal",
"errorLens.gutterIconSet": "borderless",
"errorLens.gutterIconSize": "80%",
"errorLens.messageBackgroundMode": "message",
"errorLens.padding": "2",
"errorLens.statusBarColorsEnabled": true,
"errorLens.statusBarMessageEnabled": true,
"explorer.confirmDragAndDrop": false,
"explorer.fileNesting.patterns": {
"go.mod": "go.sum",
"pyproject.toml": "poetry.lock"
},
"explorer.openEditors.visible": 0,
"explorer.sortOrder": "default",
"files.autoSave": "afterDelay",
"files.exclude": {
"**/node_modules": true,
"**/bower_components": true,
"**/*.code-search": true,
"**/target": true,
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/Thumbs.db": true,
"**/__pycache__": true,
"**/.mypy_cache": true,
"**/.pytest_cache": true,
"**/.venv": true,
"**/.pyc": true,
"**/dump.rdb": true,
"**/dist": true,
"**/build": true,
"**/out": true,
"**/.idea": true
},
"files.hotExit": "onExitAndWindowClose",
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
"files.trimTrailingWhitespace": true,
"git.allowForcePush": true,
"git.allowNoVerifyCommit": true,
"git.alwaysShowStagedChangesResourceGroup": true,
"git.alwaysSignOff": true,
"git.autoStash": true,
"git.autofetch": "all",
"git.enableCommitSigning": true,
"git.pullBeforeCheckout": true,
"git.rebaseWhenSync": true,
"git.useCommitInputAsStashMessage": true,
"github.copilot.enable": {
"*": true,
"plaintext": true,
"markdown": false,
"scminput": false
},
"github.copilot.inlineSuggest.enable": true,
"github.gitProtocol": "ssh",
"gitlens.hovers.avatars": false,
"gitlens.hovers.currentLine.over": "line",
"gitlens.statusBar.enabled": false,
"gitlens.telemetry.enabled": false,
"go.lintFlags": ["--enable-all"],
"go.lintTool": "golangci-lint",
"html.autoClosingTags": true,
"interactiveSession.editor.fontSize": 16,
"javascript.autoClosingTags": true,
"javascript.suggest.autoImports": true,
"javascript.suggest.paths": false,
"javascript.updateImportsOnFileMove.enabled": "always",
"liveServer.settings.CustomBrowser": "firefox:PrivateMode",
"liveServer.settings.fullReload": true,
"liveServer.settings.showOnStatusbar": false,
"mypy-type-checker.importStrategy": "fromEnvironment",
"prettier.printWidth": 80,
"prettier.singleQuote": true,
"prettier.tabWidth": 2,
"python.analysis.autoImportCompletions": true,
"python.analysis.completeFunctionParens": true,
"python.analysis.importFormat": "absolute",
"python.analysis.inlayHints.functionReturnTypes": true,
"python.analysis.typeCheckingMode": "strict",
"python.formatting.blackArgs": ["-l 79"],
"python.formatting.provider": "black",
"python.linting.enabled": true,
"python.linting.mypyEnabled": true,
"python.terminal.activateEnvInCurrentTerminal": true,
"python.terminal.focusAfterLaunch": true,
"scm.diffDecorationsGutterPattern": {
"added": true
},
"scm.diffDecorationsGutterWidth": 1,
"screencastMode.verticalOffset": 90,
"search.exclude": {
"**/node_modules": true,
"**/bower_components": true,
"**/*.code-search": true,
"**/target": true,
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/Thumbs.db": true,
"**/__pycache__": true,
"**/.mypy_cache": true,
"**/.pytest_cache": true,
"**/.venv": true,
"**/.pyc": true,
"**/dump.rdb": true,
"**/dist": true,
"**/build": true,
"**/out": true,
"**/.idea": true
},
"search.smartCase": true,
"search.sortOrder": "modified",
"search.useGlobalIgnoreFiles": true,
"search.useParentIgnoreFiles": true,
"security.workspace.trust.untrustedFiles": "open",
"telemetry.telemetryLevel": "off",
"terminal.integrated.commandsToSkipShell": [
"workbench.action.focusLeftGroup",
"workbench.action.focusRightGroup"
],
"terminal.integrated.cursorBlinking": true,
"terminal.integrated.cursorStyle": "line",
"terminal.integrated.cursorWidth": 2,
"terminal.integrated.defaultLocation": "editor",
"terminal.integrated.defaultProfile.linux": "fish",
"terminal.integrated.fontSize": 16,
"terminal.integrated.ignoreProcessNames": [
"starship",
"oh-my-posh",
"bash",
"zsh",
"fish"
],
"terminal.integrated.shellIntegration.history": 1000,
"terminal.integrated.shellIntegration.suggestEnabled": true,
"terminal.integrated.smoothScrolling": true,
"terminal.integrated.tabs.focusMode": "singleClick",
"terminal.integrated.tabs.hideCondition": "never",
"terminal.integrated.tabs.title": "${sequence}",
"typescript.autoClosingTags": true,
"typescript.referencesCodeLens.enabled": true,
"typescript.suggest.autoImports": true,
"typescript.suggest.paths": false,
"typescript.updateImportsOnFileMove.enabled": "always",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"window.autoDetectColorScheme": true,
"window.commandCenter": true,
"window.menuBarVisibility": "hidden",
"window.restoreFullscreen": true,
"window.title": "${activeEditorMedium}${separator}${rootName}",
"window.zoomLevel": 2,
"workbench.activityBar.visible": false,
"workbench.colorTheme": "Default High Contrast Light",
"workbench.editor.enablePreview": false,
"workbench.editor.highlightModifiedTabs": true,
"workbench.editor.revealIfOpen": true,
"workbench.editor.showTabs": false,
"workbench.iconTheme": "material-icon-theme",
"workbench.layoutControl.enabled": false,
"workbench.list.smoothScrolling": true,
"workbench.preferredDarkColorTheme": "Default High Contrast",
"workbench.preferredLightColorTheme": "Default High Contrast Light",
"workbench.settings.editor": "ui",
"workbench.settings.enableNaturalLanguageSearch": false,
"workbench.settings.useSplitJSON": false,
"workbench.sideBar.location": "left",
"workbench.startupEditor": "none",
"workbench.tree.indent": 20,
"workbench.tree.renderIndentGuides": "always",
"zenMode.hideLineNumbers": false
}
6 changes: 6 additions & 0 deletions home/dot_config/private_fish/config.fish
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ source ~/.asdf/asdf.fish
# java
source ~/.asdf/plugins/java/set-java-home.fish

# vscode
string match -q "$TERM_PROGRAM" vscode and . (code --locate-shell-integration-path fish)

# better cd
zoxide init fish --no-aliases | source

Expand All @@ -22,3 +25,6 @@ direnv hook fish | source

# pack
source (pack completion --shell fish)

# Created by `pipx` on 2023-02-11 22:10:49
set PATH $PATH /home/lkucera/.local/bin

0 comments on commit 0131ff7

Please sign in to comment.