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): include ranged tag parameters as snippet trigger

+5 -2
+5 -2
lua/snippets/norg.lua
··· 66 66 )), 67 67 -- cool ranged-tag snippet 68 68 s( 69 - { trig = "(@+)([a-z\\-]+)", regTrig = true, wordTrig = false, name = "Dynamic Code Trigger" }, 69 + { trig = "(@+)([^ ]+)(.*)", regTrig = true, wordTrig = false, name = "Dynamic Code Trigger" }, 70 70 { 71 71 f(function(_, snip) 72 72 return snip.captures[1] ··· 74 74 f(function(_, snip) 75 75 return snip.captures[2] 76 76 end), 77 - i(1), 77 + d(1, function(_, snip) 78 + local args = snip.captures[3] 79 + return sn(nil, { i(1, args) }) 80 + end), 78 81 t{"", ""}, 79 82 f(function(_, snip) 80 83 local current_line = snip.env.TM_CURRENT_LINE