Last active
August 8, 2025 13:13
-
-
Save mgarratt/65b29ffd736db6cb937a30c9f83fabb7 to your computer and use it in GitHub Desktop.
Revisions
-
Mark Garratt revised this gist
Nov 4, 2020 . 1 changed file with 20 additions and 24 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,21 @@ # nREPL Binding | Action -----------------|------------------------------------------------------------ \<localleader>cd | Disconnect from the current nREPL server. \<localleader>cf | Connect to a server using the port found in any of the files specified by `clojure.nrepl/connection.port-files`. \<localleader>sc | Clone the current nREPL session. \<localleader>sf | Create a fresh session from scratch. \<localleader>sq | Close the current session. \<localleader>sQ | Close all sessions. \<localleader>sl | List all sessions. \<localleader>sn | Assume the next session in the list. \<localleader>sp | Assume the previous session in the list. \<localleader>ss | Prompt to select any session in the list. \<localleader>rr | Refresh all changed namespaces. \<localleader>ra | Refresh all namespaces, even unchanged. \<localleader>rc | Clear the namespace refresh cache. # Evaluate Code Binding | Action ------------------------|------------------------------------------------------------ \<localleader>ei | Interrupt the oldest evaluation you have running. @@ -16,50 +29,33 @@ \<localleader>ef | Evaluate the current file from disk. This may be different to what's currently in your buffer if you haven't saved! \<localleader>eb | Evaluate the current buffer contents. This may be different to what's on disk if you've edited it without saving. # Documentation & Source Binding | Action -----------------|------------------------------------------------------------ \<localleader>gd | Go to the definition of the word under the cursor. Support for this may vary between languages. \<localleader>vs | View the source of the symbol under the cursor. K | Look up documentation for the word under the cursor. Support for this may vary between languages. # Logging Binding | Action -----------------|------------------------------------------------------------ \<localleader>ls | Open the log buffer in a new horizontal split window. The direction can be controlled with |splitbelow|. \<localleader>lv | Open the log buffer in a new vertical split window. The direction can be controlled with |splitright|. \<localleader>lt | Open the log buffer in a new tab. Great for viewing large output. Just close the window to close the tab when you're done and return to your previous layout. \<localleader>lq | Close all visible log windows in your current tab. Other tabs will remain unaffected. # Output & Exceptions Binding | Action -----------------|------------------------------------------------------------ \<localleader>ve | View the last exception as data. \<localleader>v1 | View the most recent evaluation result. \<localleader>v2 | View the 2nd most recent evaluation result. \<localleader>v3 | View the 3rd most recent evaluation result. # Tests Binding | Action -----------------|------------------------------------------------------------ \<localleader>ta | Run all currently loaded tests. \<localleader>tn | Run all tests within this namespace. \<localleader>tN | Run all tests within the alternate namespace to this one. So if you're in `foo.bar` that would be `foo.bar-test` and if you're in `foo.bar-test` it would be `foo.bar`. \<localleader>tc | Run the specific test under the cursor. You can execute from anywhere in the form much like evaluating the root form under the cursor. -
Mark Garratt revised this gist
Nov 4, 2020 . 1 changed file with 37 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,14 +2,41 @@ -----------------|------------------------------------------------------------ \<localleader>cd | Disconnect from the current nREPL server. \<localleader>cf | Connect to a server using the port found in any of the files specified by `clojure.nrepl/connection.port-files`. Binding | Action ------------------------|------------------------------------------------------------ \<localleader>ei | Interrupt the oldest evaluation you have running. \<localleader>E | When in visual mode, evaluate the current selection. \<localleader>E[motion] | Evaluate any given motion following this mapping such as <localleader>`E2j` to evaluate this line and the two below it. \<localleader>ee | Evaluate the current form under the cursor. This is the innermost pair (ignoring those in comments or strings). `g:conjure#extract#form_pairs` controls the character pairs. \<localleader>er | Evaluate the root form under the cursor. This is the outermost pair. Great for evaluating a function you're editing if your cursor is within a few nested forms. `g:conjure#extract#form_pairs` controls the character pairs. \<localleader>e! | Evaluate the form under the cursor and replace it with the result of the evaluation. Using this on the form `(+ 10 20)` would replace the form with `30`. \<localleader>em[mark] | Evaluate the form under the cursor at the given |mark|. Set a regular Neovim mark on a form using `mF` for example in any file, then jump to another file. You can evaluate that form at any time with `<localleader>emF`. \<localleader>ew | Evaluate the word under the cursor, good for peeking inside vars defined in your file. \<localleader>ef | Evaluate the current file from disk. This may be different to what's currently in your buffer if you haven't saved! \<localleader>eb | Evaluate the current buffer contents. This may be different to what's on disk if you've edited it without saving. Binding | Action -----------------|------------------------------------------------------------ \<localleader>gd | Go to the definition of the word under the cursor. Support for this may vary between languages. Binding | Action -----------------|------------------------------------------------------------ \<localleader>ls | Open the log buffer in a new horizontal split window. The direction can be controlled with |splitbelow|. \<localleader>lv | Open the log buffer in a new vertical split window. The direction can be controlled with |splitright|. \<localleader>lt | Open the log buffer in a new tab. Great for viewing large output. Just close the window to close the tab when you're done and return to your previous layout. \<localleader>lq | Close all visible log windows in your current tab. Other tabs will remain unaffected. Binding | Action -----------------|------------------------------------------------------------ \<localleader>ve | View the last exception as data. \<localleader>v1 | View the most recent evaluation result. \<localleader>v2 | View the 2nd most recent evaluation result. \<localleader>v3 | View the 3rd most recent evaluation result. \<localleader>vs | View the source of the symbol under the cursor. Binding | Action -----------------|------------------------------------------------------------ \<localleader>sc | Clone the current nREPL session. \<localleader>sf | Create a fresh session from scratch. @@ -19,12 +46,20 @@ \<localleader>sn | Assume the next session in the list. \<localleader>sp | Assume the previous session in the list. \<localleader>ss | Prompt to select any session in the list. Binding | Action -----------------|------------------------------------------------------------ \<localleader>ta | Run all currently loaded tests. \<localleader>tn | Run all tests within this namespace. \<localleader>tN | Run all tests within the alternate namespace to this one. So if you're in `foo.bar` that would be `foo.bar-test` and if you're in `foo.bar-test` it would be `foo.bar`. \<localleader>tc | Run the specific test under the cursor. You can execute from anywhere in the form much like evaluating the root form under the cursor. Binding | Action -----------------|------------------------------------------------------------ \<localleader>rr | Refresh all changed namespaces. \<localleader>ra | Refresh all namespaces, even unchanged. \<localleader>rc | Clear the namespace refresh cache. Binding | Action ---------|------------------------------------------------------------ K | Look up documentation for the word under the cursor. Support for this may vary between languages. -
Mark Garratt revised this gist
Nov 4, 2020 . 1 changed file with 5 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,12 +2,15 @@ -----------------|------------------------------------------------------------ \<localleader>cd | Disconnect from the current nREPL server. \<localleader>cf | Connect to a server using the port found in any of the files specified by `clojure.nrepl/connection.port-files`. -----------------|------------------------------------------------------------ \<localleader>ei | Interrupt the oldest evaluation you have running. -----------------|------------------------------------------------------------ \<localleader>ve | View the last exception as data. \<localleader>v1 | View the most recent evaluation result. \<localleader>v2 | View the 2nd most recent evaluation result. \<localleader>v3 | View the 3rd most recent evaluation result. \<localleader>vs | View the source of the symbol under the cursor. -----------------|------------------------------------------------------------ \<localleader>sc | Clone the current nREPL session. \<localleader>sf | Create a fresh session from scratch. \<localleader>sq | Close the current session. @@ -16,10 +19,12 @@ \<localleader>sn | Assume the next session in the list. \<localleader>sp | Assume the previous session in the list. \<localleader>ss | Prompt to select any session in the list. -----------------|------------------------------------------------------------ \<localleader>ta | Run all currently loaded tests. \<localleader>tn | Run all tests within this namespace. \<localleader>tN | Run all tests within the alternate namespace to this one. So if you're in `foo.bar` that would be `foo.bar-test` and if you're in `foo.bar-test` it would be `foo.bar`. \<localleader>tc | Run the specific test under the cursor. You can execute from anywhere in the form much like evaluating the root form under the cursor. -----------------|------------------------------------------------------------ \<localleader>rr | Refresh all changed namespaces. \<localleader>ra | Refresh all namespaces, even unchanged. \<localleader>rc | Clear the namespace refresh cache. -
Mark Garratt revised this gist
Nov 4, 2020 . 1 changed file with 25 additions and 30 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,30 +1,25 @@ Binding | Action -----------------|------------------------------------------------------------ \<localleader>cd | Disconnect from the current nREPL server. \<localleader>cf | Connect to a server using the port found in any of the files specified by `clojure.nrepl/connection.port-files`. \<localleader>ei | Interrupt the oldest evaluation you have running. \<localleader>ve | View the last exception as data. \<localleader>v1 | View the most recent evaluation result. \<localleader>v2 | View the 2nd most recent evaluation result. \<localleader>v3 | View the 3rd most recent evaluation result. \<localleader>vs | View the source of the symbol under the cursor. \<localleader>sc | Clone the current nREPL session. \<localleader>sf | Create a fresh session from scratch. \<localleader>sq | Close the current session. \<localleader>sQ | Close all sessions. \<localleader>sl | List all sessions. \<localleader>sn | Assume the next session in the list. \<localleader>sp | Assume the previous session in the list. \<localleader>ss | Prompt to select any session in the list. \<localleader>ta | Run all currently loaded tests. \<localleader>tn | Run all tests within this namespace. \<localleader>tN | Run all tests within the alternate namespace to this one. So if you're in `foo.bar` that would be `foo.bar-test` and if you're in `foo.bar-test` it would be `foo.bar`. \<localleader>tc | Run the specific test under the cursor. You can execute from anywhere in the form much like evaluating the root form under the cursor. \<localleader>rr | Refresh all changed namespaces. \<localleader>ra | Refresh all namespaces, even unchanged. \<localleader>rc | Clear the namespace refresh cache. -
Mark Garratt revised this gist
Nov 4, 2020 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,5 @@ | Binding | Action | |-----------------|------------------------------------------------------------| | <localleader>cd | Disconnect from the current nREPL server. | | <localleader>cf | Connect to a server using the port found in any of the | | | files specified by `clojure.nrepl/connection.port-files`. | -
Mark Garratt created this gist
Nov 4, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,29 @@ +------------------------------------------------------------------------------+ | <localleader>cd | Disconnect from the current nREPL server. | | <localleader>cf | Connect to a server using the port found in any of the | | | files specified by `clojure.nrepl/connection.port-files`. | | <localleader>ei | Interrupt the oldest evaluation you have running. | | <localleader>ve | View the last exception as data. | | <localleader>v1 | View the most recent evaluation result. | | <localleader>v2 | View the 2nd most recent evaluation result. | | <localleader>v3 | View the 3rd most recent evaluation result. | | <localleader>vs | View the source of the symbol under the cursor. | | <localleader>sc | Clone the current nREPL session. | | <localleader>sf | Create a fresh session from scratch. | | <localleader>sq | Close the current session. | | <localleader>sQ | Close all sessions. | | <localleader>sl | List all sessions. | | <localleader>sn | Assume the next session in the list. | | <localleader>sp | Assume the previous session in the list. | | <localleader>ss | Prompt to select any session in the list. | | <localleader>ta | Run all currently loaded tests. | | <localleader>tn | Run all tests within this namespace. | | <localleader>tN | Run all tests within the alternate namespace to this one. | | | So if you're in `foo.bar` that would be `foo.bar-test` and | | | if you're in `foo.bar-test` it would be `foo.bar`. | | <localleader>tc | Run the specific test under the cursor. You can execute | | | from anywhere in the form much like evaluating the root | | | form under the cursor. | | <localleader>rr | Refresh all changed namespaces. | | <localleader>ra | Refresh all namespaces, even unchanged. | | <localleader>rc | Clear the namespace refresh cache. |