@@ -16,6 +16,8 @@ Using **lazy.nvim**, you can use the following code snippet to install and confi
16
16
``` lua
17
17
{
18
18
" stacklok/codegate.nvim" ,
19
+ dependencies = { " nvim-lua/plenary.nvim" },
20
+ lazy = false ,
19
21
config = function ()
20
22
require (" codegate" ).setup ({
21
23
base_url = " http://127.0.0.1:8989" ,
@@ -30,4 +32,28 @@ Using **lazy.nvim**, you can use the following code snippet to install and confi
30
32
- ** Activate a Workspace** : Run ` :CodeGateSetWorkspace <workspace> ` to activate a specific workspace.
31
33
- ** Telescope Picker** : If ** telescope.nvim** is installed, run ` :CodeGateTelescopeWorkspaces ` to open a fuzzy search picker.
32
34
35
+ ## Creating keymaps
36
+
37
+ To work with CodeGate workspaces more efficiently, you can set up your own keymaps to
38
+ switch between workspaces. Here are a few ideas that can help you get started!
39
+
40
+ ** Use a fuzzy finder to switch between workspaces**
41
+
42
+ ``` lua
43
+ vim .api .nvim_set_keymap (' n' , ' <leader>cgg' , ' :CodeGateTelescopeWorkspaces<CR>' , { noremap = true , silent = true })
44
+ ```
45
+
46
+ ** Switch to a specific workspace with a fixed shortcut**
47
+
48
+ ``` lua
49
+ vim .api .nvim_set_keymap (' n' , ' <leader>cga' , ' :CodeGateSetWorkspace default<CR>' , { noremap = true , silent = true })
50
+ vim .api .nvim_set_keymap (' n' , ' <leader>cgs' , ' :CodeGateSetWorkspace integration-testing<CR>' , { noremap = true , silent = true })
51
+ vim .api .nvim_set_keymap (' n' , ' <leader>cgd' , ' :CodeGateSetWorkspace react-implementation<CR>' , { noremap = true , silent = true })
52
+ ```
53
+
54
+ ** Switch to a specific workspace by typing the workspace name**
55
+
56
+ ``` lua
57
+ vim .api .nvim_set_keymap (' n' , ' <leader>cgq' , ' :CodeGateSetWorkspace ' , { noremap = true , silent = false }) -- notice `silent = false`
58
+ ```
33
59
0 commit comments