Browse Source

Fixed the cursor position in some Rust snippets

master
Julio Biason 2 years ago
parent
commit
24f751b78c
  1. 9
      nvim/snippets/rust.snippets

9
nvim/snippets/rust.snippets

@ -4,13 +4,10 @@ snippet match
}
snippet envinit
env_logger::init();
$0
env_logger::init();$0
snippet VERSION
const VERSION: Option<&'static str> = option_env!("CARGO_PKG_VERSION");
$0
const VERSION: Option<&'static str> = option_env!("CARGO_PKG_VERSION");$0
snippet start
log::info!("Starting up ${1:name} v{}...", VERSION.unwrap_or("???");
$0
log::info!("Starting up ${1:name} v{}...", VERSION.unwrap_or("???"));$0

Loading…
Cancel
Save