Browse Source

update codium bindings and settings

Chris 4 years ago
parent
commit
99d76dabce
3 changed files with 55 additions and 84 deletions
  1. 1 1
      init.vim
  2. 1 1
      utils/vscode_config/keybindings.json
  3. 53 82
      utils/vscode_config/settings.json

+ 1 - 1
init.vim

@@ -42,7 +42,7 @@ else
   source $HOME/.config/nvim/plug-config/git-messenger.vim
   source $HOME/.config/nvim/plug-config/closetags.vim
   source $HOME/.config/nvim/plug-config/floaterm.vim
-  source $HOME/.config/nvim/plug-config/vista.vim
+  " source $HOME/.config/nvim/plug-config/vista.vim
   source $HOME/.config/nvim/plug-config/xtabline.vim
   source $HOME/.config/nvim/plug-config/polyglot.vim
   source $HOME/.config/nvim/plug-config/far.vim

+ 1 - 1
utils/vscode_config/keybindings.json

@@ -122,7 +122,7 @@
     "when": "terminalFocus"
   },
   {
-    "key": "ctrl+j",
+    "key": "cmd+j",
     "command": "workbench.action.terminal.focus",
     "when": "!terminalFocus"
   }

+ 53 - 82
utils/vscode_config/settings.json

@@ -5,6 +5,12 @@
   "vscode-neovim.neovimInitVimPaths.linux": "$HOME/.config/nvim/init.vim",
   "whichkey.sortOrder": "alphabetically",
   "whichkey.bindings": [
+    {
+      "key": ";",
+      "name": "commands",
+      "type": "command",
+      "command": "workbench.action.showCommands"
+    },
     {
       "key": "/",
       "name": "comment",
@@ -198,6 +204,32 @@
       "type": "command",
       "command": "workbench.action.toggleSidebarVisibility"
     },
+    {
+      "key": "f",
+      "name": "Find & Replace...",
+      "type": "bindings",
+      "bindings": [
+        {
+          "key": "f",
+          "name": "File",
+          "type": "command",
+          "command": "editor.action.startFindReplaceAction"
+        },
+        {
+          "key": "s",
+          "name": "Symbol",
+          "type": "command",
+          "command": "editor.action.rename",
+          "when": "editorHasRenameProvider && editorTextFocus && !editorReadonly"
+        },
+        {
+          "key": "p",
+          "name": "Project",
+          "type": "command",
+          "command": "workbench.action.replaceInFiles"
+        }
+      ]
+    },
     {
       "key": "g",
       "name": "Git...",
@@ -296,96 +328,29 @@
         }
       ]
     },
+
+    {
+      "key": "m",
+      "name": "minimap",
+      "type": "command",
+      "command": "editor.action.toggleMinimap"
+    },
     {
       "key": "s",
       "name": "Search...",
       "type": "bindings",
       "bindings": [
         {
-          "key": "e",
-          "name": "Edit symbol",
-          "type": "command",
-          "command": "editor.action.rename"
-        },
-        {
-          "key": "h",
-          "name": "Highlight symbol",
-          "type": "transient",
-          "command": "editor.action.wordHighlight.trigger",
-          "bindings": [
-            {
-              "key": "p",
-              "name": "Previous occurrence",
-              "type": "command",
-              "command": "editor.action.wordHighlight.prev"
-            },
-            {
-              "key": "N",
-              "name": "Previous occurrence",
-              "type": "command",
-              "command": "editor.action.wordHighlight.prev"
-            },
-            {
-              "key": "n",
-              "name": "Next occurrence",
-              "type": "command",
-              "command": "editor.action.wordHighlight.next"
-            },
-            {
-              "key": "/",
-              "name": "Search in a project with a selection",
-              "type": "commands",
-              "commands": [
-                "editor.action.addSelectionToNextFindMatch",
-                "workbench.action.findInFiles"
-              ]
-            }
-          ]
-        },
-        {
-          "key": "j",
-          "name": "Jump to symbol in file",
-          "type": "command",
-          "command": "workbench.action.gotoSymbol"
-        },
-        {
-          "key": "J",
-          "name": "Jump to symbol in workspace",
+          "key": "f",
+          "name": "files",
           "type": "command",
-          "command": "workbench.action.showAllSymbols"
+          "command": "workbench.action.quickOpen"
         },
         {
-          "key": "p",
-          "name": "Search in a project",
+          "key": "t",
+          "name": "text",
           "type": "command",
           "command": "workbench.action.findInFiles"
-        },
-        {
-          "key": "P",
-          "name": "Search in a project with a selection",
-          "type": "commands",
-          "commands": [
-            "editor.action.addSelectionToNextFindMatch",
-            "workbench.action.findInFiles"
-          ]
-        },
-        {
-          "key": "r",
-          "name": "Search all references",
-          "type": "command",
-          "command": "editor.action.referenceSearch.trigger"
-        },
-        {
-          "key": "R",
-          "name": "Search all references in side bar",
-          "type": "command",
-          "command": "references-view.find"
-        },
-        {
-          "key": "s",
-          "name": "Search in current file",
-          "type": "command",
-          "command": "actions.find"
         }
       ]
     },
@@ -612,7 +577,6 @@
   "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
   "python.pythonPath": "/Users/chris/.miniconda/bin/python",
   "java.semanticHighlighting.enabled": true,
-  "workbench.iconTheme": "material-icon-theme",
   "java.jdt.ls.vmargs": "-XX:+UseParallelGC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Xmx1G -Xms100m -javaagent:\"/Users/chris/.vscode-oss/extensions/gabrielbb.vscode-lombok-1.0.1/server/lombok.jar\"",
   "workbench.list.automaticKeyboardNavigation": false,
   "oneDarkPro.editorTheme": "onedarkPro",
@@ -623,11 +587,18 @@
   "kite.showWelcomeNotificationOnStartup": false,
   "python.terminal.activateEnvironment": false,
   "editor.cursorBlinking": "solid",
-  "editor.fontFamily": "Fira, Menlo, Monaco, 'Courier New', monospace",
+  "editor.fontFamily": "Hack, Menlo, Monaco, 'Courier New', monospace",
   "files.exclude": {
     "**/.classpath": true,
     "**/.project": true,
     "**/.settings": true,
     "**/.factorypath": true
-  }
+  },
+  "terminal.external.osxExec": "iTerm.app",
+  "editor.minimap.enabled": false,
+  "workbench.activityBar.visible": false,
+  "leetcode.workspaceFolder": "/Users/chris/Repos/leetcode",
+  "leetcode.defaultLanguage": "python3",
+  "leetcode.hint.configWebviewMarkdown": false,
+  "leetcode.hint.commentDescription": false
 }