Reorganize vscode configs

This commit is contained in:
Wilfried OLLIVIER 2022-10-29 16:29:08 +02:00
parent 1b02c5c3bd
commit d5d4d19376
2 changed files with 45 additions and 33 deletions

View file

@ -106,6 +106,7 @@
"command": "workbench.action.quickOpenSelectPrevious", "command": "workbench.action.quickOpenSelectPrevious",
"when": "inQuickOpen" "when": "inQuickOpen"
}, },
// Editor closing
{ {
"key": "ctrl+q ctrl+q", "key": "ctrl+q ctrl+q",
"command": "workbench.action.closeEditorsInOtherGroups", "command": "workbench.action.closeEditorsInOtherGroups",
@ -124,6 +125,7 @@
"key": "ctrl+q ctrl+w", "key": "ctrl+q ctrl+w",
"command": "workbench.action.closeAllEditors" "command": "workbench.action.closeAllEditors"
}, },
// Editor nav
{ {
"key": "meta+1", "key": "meta+1",
"command": "workbench.action.focusFirstEditorGroup" "command": "workbench.action.focusFirstEditorGroup"
@ -193,21 +195,11 @@
"key": "ctrl+,", "key": "ctrl+,",
"command": "workbench.action.toggleMaximizedPanel" "command": "workbench.action.toggleMaximizedPanel"
}, },
// Spacecode
{ {
"key": "ctrl+space", "key": "ctrl+space",
"command": "vspacecode.space" "command": "vspacecode.space"
}, },
// Misc resets with no rebind
{
"key": "ctrl+o",
"command": "-extension.vim_ctrl+o",
"when": "editorTextFocus && vim.active && vim.use<C-o> && !inDebugRepl"
},
{
"key": "shift+alt+[Period]",
"command": "-gitlens.gitCommands",
"when": "!gitlens:disabled && config.gitlens.keymap == 'alternate'"
},
// Notifications // Notifications
{ {
"key": "ctrl+y ;", "key": "ctrl+y ;",
@ -369,5 +361,16 @@
"key": "shift+4", "key": "shift+4",
"command": "-magit.process-log", "command": "-magit.process-log",
"when": "editorTextFocus && editorLangId == 'magit' && vim.mode =~ /^(?!SearchInProgressMode|CommandlineInProgress).*$/" "when": "editorTextFocus && editorLangId == 'magit' && vim.mode =~ /^(?!SearchInProgressMode|CommandlineInProgress).*$/"
},
// Misc resets with no rebind
{
"key": "ctrl+o",
"command": "-extension.vim_ctrl+o",
"when": "editorTextFocus && vim.active && vim.use<C-o> && !inDebugRepl"
},
{
"key": "shift+alt+[Period]",
"command": "-gitlens.gitCommands",
"when": "!gitlens:disabled && config.gitlens.keymap == 'alternate'"
} }
] ]

View file

@ -1,4 +1,5 @@
{ {
// VIM
"keyboard.dispatch": "keyCode", "keyboard.dispatch": "keyCode",
"vim.easymotion": true, "vim.easymotion": true,
"vim.incsearch": true, "vim.incsearch": true,
@ -135,6 +136,7 @@
"<C-j>": false "<C-j>": false
}, },
"vim.statusBarColorControl": false, "vim.statusBarColorControl": false,
// Editor
"editor.fontFamily": "'JetBrainsMono Nerd Font', Monaco, 'Courier New', monospace", "editor.fontFamily": "'JetBrainsMono Nerd Font', Monaco, 'Courier New', monospace",
"editor.fontSize": 11, "editor.fontSize": 11,
"editor.bracketPairColorization.enabled": true, "editor.bracketPairColorization.enabled": true,
@ -162,9 +164,6 @@
"editor.lineNumbers": "on", "editor.lineNumbers": "on",
"editor.wordSeparators": "/\\()\"':,.;<>~!@#$%^&*|+=[]{}`?-", "editor.wordSeparators": "/\\()\"':,.;<>~!@#$%^&*|+=[]{}`?-",
"editor.wordWrap": "off", "editor.wordWrap": "off",
"terminal.integrated.enablePersistentSessions": false,
"terminal.integrated.fontFamily": "'MesloLGS NF'",
"terminal.integrated.fontSize": 11,
"workbench.colorTheme": "Gruvbox Light Soft", "workbench.colorTheme": "Gruvbox Light Soft",
"workbench.colorCustomizations": { "workbench.colorCustomizations": {
"editorBracketHighlight.foreground1": "#d79921", "editorBracketHighlight.foreground1": "#d79921",
@ -176,6 +175,11 @@
}, },
"workbench.iconTheme": "bearded-icons", "workbench.iconTheme": "bearded-icons",
"workbench.sideBar.location": "right", "workbench.sideBar.location": "right",
// Terminal
"terminal.integrated.enablePersistentSessions": false,
"terminal.integrated.fontFamily": "'MesloLGS NF'",
"terminal.integrated.fontSize": 11,
// Git
"redhat.telemetry.enabled": false, "redhat.telemetry.enabled": false,
"gitlens.advanced.messages": { "gitlens.advanced.messages": {
"suppressCommitHasNoPreviousCommitWarning": false, "suppressCommitHasNoPreviousCommitWarning": false,
@ -188,41 +192,39 @@
"gitlens.keymap": "alternate", "gitlens.keymap": "alternate",
"githubPullRequests.pullBranch": "never", "githubPullRequests.pullBranch": "never",
"git.mergeEditor": false, "git.mergeEditor": false,
// LUA
"Lua.telemetry.enable": false, "Lua.telemetry.enable": false,
// Go
"go.toolsManagement.autoUpdate": true, "go.toolsManagement.autoUpdate": true,
"go.formatTool": "goimports", "go.formatTool": "goimports",
"go.useLanguageServer": true, "go.useLanguageServer": true,
"go.lintTool": "golint", "go.lintTool": "golint",
// Ruby
"solargraph.autoformat": true, "solargraph.autoformat": true,
"solargraph.commandPath": "solargraph", "solargraph.commandPath": "solargraph",
"ruby.lint": {
"rubocop": true
},
"ruby.format": "rubocop",
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.tabSize": 2,
"editor.insertSpaces": true
},
"[python]": {
"editor.tabSize": 4,
"editor.insertSpaces": true
},
"[ruby]": { "[ruby]": {
"editor.tabSize": 2, "editor.tabSize": 2,
"editor.insertSpaces": true, "editor.insertSpaces": true,
"editor.defaultFormatter": "rebornix.ruby" "editor.defaultFormatter": "rebornix.ruby"
}, },
// JS/TS
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.tabSize": 2,
"editor.insertSpaces": true
},
"[javascript]": { "[javascript]": {
"editor.tabSize": 2, "editor.tabSize": 2,
"editor.insertSpaces": true, "editor.insertSpaces": true,
"editor.defaultFormatter": "esbenp.prettier-vscode" "editor.defaultFormatter": "esbenp.prettier-vscode"
}, },
"[elixir]": { // Python
"editor.tabSize": 2, "[python]": {
"editor.tabSize": 4,
"editor.insertSpaces": true "editor.insertSpaces": true
}, },
"[crystal]": { // Elixir / Erlang
"[elixir]": {
"editor.tabSize": 2, "editor.tabSize": 2,
"editor.insertSpaces": true "editor.insertSpaces": true
}, },
@ -230,18 +232,25 @@
"editor.tabSize": 2, "editor.tabSize": 2,
"editor.insertSpaces": true "editor.insertSpaces": true
}, },
"[html]": { // Crystal
"editor.tabSize": 4, "[crystal]": {
"editor.tabSize": 2,
"editor.insertSpaces": true "editor.insertSpaces": true
}, },
// Rust
"[rust]": { "[rust]": {
"editor.tabSize": 4, "editor.tabSize": 4,
"editor.insertSpaces": true "editor.insertSpaces": true
}, },
// Markup
"[yaml]": { "[yaml]": {
"editor.defaultFormatter": "redhat.vscode-yaml" "editor.defaultFormatter": "redhat.vscode-yaml"
}, },
"[html]": {
"editor.tabSize": 4,
"editor.insertSpaces": true
},
"emmet.includeLanguages": { "emmet.includeLanguages": {
"erb": "html" "erb": "html"
}, }
} }