neovim configuration using rocks.nvim plugin manager
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat(snippets): add more snippets

+19 -1
+14 -1
lua/snippets/go.lua
··· 13 13 s("ife", { 14 14 t{"if err != nil {", ""}, 15 15 t"\t", c(1, { 16 - sn(nil, { t"return ", i(1), t"err" }), 16 + sn(nil, { t"return", i(1), t" err" }), 17 17 t"log.Fatalln(err)", 18 18 }), 19 19 t{"", "}"}, i(0), ··· 23 23 {}{} 24 24 }} 25 25 ]], { i(1), i(2), i(3), t("\t"), i(4) })), 26 + s("cl", fmt([[ 27 + func({}){} {{ 28 + {}{} 29 + }} 30 + ]], { i(1), i(2), t("\t"), i(3) })), 26 31 s("me", fmt([[ 27 32 func ({}) {}({}){} {{ 28 33 {}{} 29 34 }} 30 35 ]], { i(1), i(2), i(3), i(4), t("\t"), i(5) })), 36 + 37 + s("midfn", fmt([[ 38 + func {}(next http.Handler) http.Handler {{ 39 + {}return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {{ 40 + {}{} 41 + {}}}) 42 + }} 43 + ]], { i(1, "sampleMiddleware"), t("\t"), t("\t\t"), i(2), t("\t") })), 31 44 })
+5
lua/snippets/lua.lua
··· 20 20 {}{} 21 21 end 22 22 ]], { i(1, "name"), i(2), t("\t"), i(3) })), 23 + s("cl", fmt([[ 24 + function({}) 25 + {}{} 26 + end 27 + ]], { i(1), t("\t"), i(2) })), 23 28 s("if", fmt([[ 24 29 if {} then 25 30 {}{}