-
Notifications
You must be signed in to change notification settings - Fork 714
Rust
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.
- 100 rust max width wrap and tabstop, see https://github.com/mawww/kakoune/pull/3510
- 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 }
- Normal mode commands
- Avoid the escape key
- Implementing user mode (Leader key)
- Kakoune explain
- Kakoune TV