1
0
mirror of https://github.com/amix/vimrc synced 2025-07-03 22:25:32 +08:00

updated plugins and added eslint goodies

This commit is contained in:
Max Alcala
2016-02-19 10:35:36 -06:00
parent a1deb28314
commit f3143286d3
402 changed files with 14389 additions and 4024 deletions

View File

@ -7,6 +7,10 @@ snippet fn "Function definition"
fn ${1:function_name}(${2})${3} {
${0}
}
snippet pfn "Function definition"
pub fn ${1:function_name}(${2})${3} {
${0}
}
snippet test "Unit test function"
#[test]
fn ${1:test_function_name}() {
@ -27,10 +31,14 @@ snippet main "Main function"
pub fn main() {
${0}
}
snippet let "let variable declaration"
let ${1:name}${2:: ${3:type}} = ${4};
snippet letm "let mut variable declaration"
let mut ${1:name}${2:: ${3:type}} = ${4};
snippet let "let variable declaration with type inference"
let ${1} = ${2};
snippet lett "let variable declaration with explicit type annotation"
let ${1}: ${2} = ${3};
snippet letm "let mut variable declaration with type inference"
let mut ${1} = ${2};
snippet lettm "let mut variable declaration with explicit type annotation"
let mut ${1}: ${2} = ${3};
snippet pln "println!"
println!("${1}");
snippet pln, "println! with format param"
@ -106,7 +114,7 @@ snippet loop "loop {}" b
loop {
${0}
}
snippet while "while loop"
snippet wh "while loop"
while ${1:condition} {
${0}
}