diff options
| author | Vito G. Graffagnino <vito@graffagnino.xyz> | 2022-08-30 16:06:22 +0100 |
|---|---|---|
| committer | Vito G. Graffagnino <vito@graffagnino.xyz> | 2022-08-30 16:06:22 +0100 |
| commit | f1eabbaa1b4ff1836d0ee8335b31d009203f3775 (patch) | |
| tree | bbe77eacaef8ab8a5999e517c3006973c9e3e44c /snippets/julia.snippets | |
| parent | 823302458ec6c53455a3f34674415c43ce6a3187 (diff) | |
fixed zathura integration with texlab using nvim-texlabconfig
Diffstat (limited to 'snippets/julia.snippets')
| -rw-r--r-- | snippets/julia.snippets | 114 |
1 files changed, 0 insertions, 114 deletions
diff --git a/snippets/julia.snippets b/snippets/julia.snippets deleted file mode 100644 index 1e0d3f2..0000000 --- a/snippets/julia.snippets +++ /dev/null @@ -1,114 +0,0 @@ -snippet #! - #!/usr/bin/env julia - -# Functions -snippet fun function definition - function ${1}(${2}) - ${0} - end - -snippet ret return - return(${0}) - -# Printing to console -snippet pr print - print("${1}") - ${0} - -snippet prl print line - println("${1}") - ${0} - -# Includes -snippet use load a package - using ${0} - -snippet incl include source code - include("${1}") - ${0} - -# Loops -snippet forc for loop iterating over iterable container - for ${1} in ${2} - ${0} - end - -snippet for standard for loop - for ${1} = ${2} - ${0} - end - -snippet fornest nested for loop - for ${1} = ${2}, ${3} = ${4} - ${0} - end - -snippet wh while loop - while ${1} ${2:<=} ${3} - ${0} - end - -# Conditionals -snippet if if statement - if ${1} - ${0} - end - -snippet el else part of statement - else - ${0} - -snippet eif else if part of if statement - else if ${1} - ${0} - -snippet ife full if-else statement - if ${1} - ${2} - else - ${0} - end - -snippet tern ternary operator - ${1} ? ${2} : ${3:nothing} - -# Exceptions -snippet try try catch - try - ${1:${VISUAL}} - catch ${2} - ${0} - end - -snippet fin finally statement - finally - ${0} - -snippet thr throw - throw(${1}) - ${0} - -# Messages -snippet @i - @info "${1}" ${0} - -snippet @w - @warn "${1}" ${0} - -snippet @e - @error "${1}" ${0} - -snippet @d - @debug "${1}" ${0} - -snippet @t @testset with @test - @testset "${1}" begin - ${2} - @test ${0} - end - -snippet @tt @testset with @test_throws - @testset "${1}" begin - ${2} - @test_throws ${0} - end |
