Skip to content
Ivan Tham edited this page Nov 8, 2020 · 3 revisions

Rust features indentation, inspired by other auto languages in kakoune as well as rust.vim.

Most of the parts will auto-indent on-the-fly.

Fixes

Features (less known)

  • Continue comments
/// <ret>             // trailing whitespace will be removed when leaving insert mode
  • Remove comments
///<ret>
  • Auto indent
struct Option<T>
    where<ret>        // <-- will dedent where
struct Option<T>
where
    T: PartialEq
    {<ret>            // <-- will dedent {
struct Option<T> {
    Some(T),
    None,
    }<ret>            // <-- will dedent }
Clone this wiki locally