A community-driven vim distribution

Home | About | Documentation | Development | Community | Sponsors

Available Layers » lang#rust


This layer is for Rust development.


SpaceVim also provides code runner and Language Server protocol support for Rust. To enable language server protocol for Rust, you need to load lsp layer for Rust.



To use this configuration layer, update custom configuration file with:

  name = "lang#rust"

Layer options

Key bindings

Key bindings Descriptions
SPC l d / K Show doc of cursor symbol
SPC l e Rename symbol (need lsp layer)
g d Jump to definition
SPC l s Jump to definition (split)
SPC l x Jump to definition (vertical)

Code runner

To running current script, you can press SPC l r to run current file without loss focus, and the result will be shown in a runner buffer.

Hosted on GitHub, Help improve this page — Theme by mattgraham,