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",
"when": "inQuickOpen"
},
// Editor closing
{
"key": "ctrl+q ctrl+q",
"command": "workbench.action.closeEditorsInOtherGroups",
@ -124,6 +125,7 @@
"key": "ctrl+q ctrl+w",
"command": "workbench.action.closeAllEditors"
},
// Editor nav
{
"key": "meta+1",
"command": "workbench.action.focusFirstEditorGroup"
@ -193,21 +195,11 @@
"key": "ctrl+,",
"command": "workbench.action.toggleMaximizedPanel"
},
// Spacecode
{
"key": "ctrl+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
{
"key": "ctrl+y ;",
@ -369,5 +361,16 @@
"key": "shift+4",
"command": "-magit.process-log",
"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",
"vim.easymotion": true,
"vim.incsearch": true,
@ -135,6 +136,7 @@
"<C-j>": false
},
"vim.statusBarColorControl": false,
// Editor
"editor.fontFamily": "'JetBrainsMono Nerd Font', Monaco, 'Courier New', monospace",
"editor.fontSize": 11,
"editor.bracketPairColorization.enabled": true,
@ -162,9 +164,6 @@
"editor.lineNumbers": "on",
"editor.wordSeparators": "/\\()\"':,.;<>~!@#$%^&*|+=[]{}`?-",
"editor.wordWrap": "off",
"terminal.integrated.enablePersistentSessions": false,
"terminal.integrated.fontFamily": "'MesloLGS NF'",
"terminal.integrated.fontSize": 11,
"workbench.colorTheme": "Gruvbox Light Soft",
"workbench.colorCustomizations": {
"editorBracketHighlight.foreground1": "#d79921",
@ -176,6 +175,11 @@
},
"workbench.iconTheme": "bearded-icons",
"workbench.sideBar.location": "right",
// Terminal
"terminal.integrated.enablePersistentSessions": false,
"terminal.integrated.fontFamily": "'MesloLGS NF'",
"terminal.integrated.fontSize": 11,
// Git
"redhat.telemetry.enabled": false,
"gitlens.advanced.messages": {
"suppressCommitHasNoPreviousCommitWarning": false,
@ -188,41 +192,39 @@
"gitlens.keymap": "alternate",
"githubPullRequests.pullBranch": "never",
"git.mergeEditor": false,
// LUA
"Lua.telemetry.enable": false,
// Go
"go.toolsManagement.autoUpdate": true,
"go.formatTool": "goimports",
"go.useLanguageServer": true,
"go.lintTool": "golint",
// Ruby
"solargraph.autoformat": true,
"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]": {
"editor.tabSize": 2,
"editor.insertSpaces": true,
"editor.defaultFormatter": "rebornix.ruby"
},
// JS/TS
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.tabSize": 2,
"editor.insertSpaces": true
},
"[javascript]": {
"editor.tabSize": 2,
"editor.insertSpaces": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[elixir]": {
"editor.tabSize": 2,
// Python
"[python]": {
"editor.tabSize": 4,
"editor.insertSpaces": true
},
"[crystal]": {
// Elixir / Erlang
"[elixir]": {
"editor.tabSize": 2,
"editor.insertSpaces": true
},
@ -230,18 +232,25 @@
"editor.tabSize": 2,
"editor.insertSpaces": true
},
"[html]": {
"editor.tabSize": 4,
// Crystal
"[crystal]": {
"editor.tabSize": 2,
"editor.insertSpaces": true
},
// Rust
"[rust]": {
"editor.tabSize": 4,
"editor.insertSpaces": true
},
// Markup
"[yaml]": {
"editor.defaultFormatter": "redhat.vscode-yaml"
},
"[html]": {
"editor.tabSize": 4,
"editor.insertSpaces": true
},
"emmet.includeLanguages": {
"erb": "html"
},
}
}