1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-10-05 17:18:00 +03:00
3 Rust
Ivan Tham edited this page 2020-11-08 17:17:40 +08:00

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 }