Browse Source

Fixed the cursor position in some Rust snippets

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

9
nvim/snippets/rust.snippets

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

Loading…
Cancel
Save