Skip to content

Commit

Permalink
readme: lsp-execute-code-action
Browse files Browse the repository at this point in the history
  • Loading branch information
brotzeit committed Mar 7, 2020
1 parent c84a7bc commit 61032ea
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
- [Client](#client)
- [eglot](#eglot)
- [lsp-mode](#lsp-mode)
- [Auto import](#auto-import)
- [`lsp-execute-code-action`](#lsp-execute-code-action)
- [Applying code actions](#applying-code-actions)
- [Auto import](#auto-import)
- [Macro expansion](#macro-expansion)
- [Cargo](#cargo)
- [Test](#test)
Expand Down Expand Up @@ -171,9 +173,17 @@ Turn off flymake.

You can find more information in the [lsp-mode wiki](https://github.com/emacs-lsp/lsp-mode/wiki/Rust).

##### Auto import
##### `lsp-execute-code-action`

Run `lsp-execute-code-action`
This command can be extremely convenient when applying code actions or using auto-imports.

Run `lsp-execute-code-action` when lsp-ui displays code actions at the top of the sideline.

###### Applying code actions

![](https://raw.githubusercontent.com/brotzeit/rustic/master/img/code_actions.png)

###### Auto import

![](https://raw.githubusercontent.com/brotzeit/rustic/master/img/auto_import.png)

Expand Down
Binary file added img/code_actions.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 61032ea

Please sign in to comment.