local helpers = require('personal.luasnip-helper-funcs') local get_visual = helpers.get_visual local line_begin = require("luasnip.extras.expand_conditions").line_begin -- Return snippet tables return { -- Fenced block of code s({trig="cc", snippetType = "autosnippet"}, fmta( [[ ```<> <> ``` ]], { i(1), d(2, get_visual), } ), {condition = line_begin} ), -- HTML CODE BLOCK s({trig="html"}, fmta( [[ ```html <> ``` ]], { d(1, get_visual) } ), {condition = line_begin} ), -- PHP CODE BLOCK s({trig="phpp", snippetType="autosnippet"}, fmt( [[ ```php {} ``` ]], { i(1), d(2, get_visual) } ), {condition = line_begin} ), }