summary refs log tree commit diff
path: root/.vim/snippets/lua.lua
blob: dc75ec8a82ae31f2cbd9daa8fa5bd110d945778d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
---@diagnostic disable: undefined-global
return {
  s(
    'use',
    fmt(
      [[
    use {{'{}'{} -- {{{{{{
      config = function()
        require('{}').setup {{}}
      end}} -- }}}}}}
    ]],
      {
        i(1, 'username/repo'),
        c(2, {
          t(','),
          t(', disabled = true,'),
          fmt([[, cmd = {{'{}'}}, module = {{'{}'}},]], { i(1, 'Cmd'), i(2, 'module') }),
        }),
        i(3, 'module'),
      }
    )
  ),
}