style: format lua with StyLua

This commit is contained in:
Oliver Davies 2022-01-09 00:07:35 +00:00
parent f1171dbfc0
commit 5ff925c80c
21 changed files with 200 additions and 194 deletions

View file

@ -19,34 +19,29 @@ local snippets = {}
-- Snippets for both JavaScript and TypeScript.
local js_ts = {
s(
{ trig = 'log', dscr = 'console.log' },
{ t('console.log('), i(1, 'value'), t(');') }
),
s({ trig = "log", dscr = "console.log" }, { t "console.log(", i(1, "value"), t ");" }),
}
snippets.js = js_ts
snippets.markdown = {
s(
{ trig = 'frontmatter', dscr = 'Document frontmatter' },
{ t({'---', 'tags: '}), i(1, 'value'), t({'', '---', ''}), i(0) }
)
{ trig = "frontmatter", dscr = "Document frontmatter" },
{ t { "---", "tags: " }, i(1, "value"), t { "", "---", "" }, i(0) }
),
}
snippets.php = {
s(
{ trig = 'test', dscr = 'Test block' },
{
t({ "/* @test **/", "" }),
t("public function "),
c(1, { t "test", t "it", t "should" }), -- The test method name prefix.
i(2), -- The test method name.
t({ "(): void {", "" }),
t(" "), i(0), -- The method body.
t({ "", "}" })
}
),
s({ trig = "test", dscr = "Test block" }, {
t { "/* @test **/", "" },
t "public function ",
c(1, { t "test", t "it", t "should" }), -- The test method name prefix.
i(2), -- The test method name.
t { "(): void {", "" },
t " ",
i(0), -- The method body.
t { "", "}" },
}),
}
snippets.typescript = js_ts

View file

@ -5,14 +5,14 @@ end
zen_mode.setup {
window = {
backdrop = .95,
backdrop = 0.95,
height = 1,
width = 120,
options = {
relativenumber = false,
number = false,
signcolumn = "no",
}
},
},
plugins = {
options = {
@ -21,5 +21,5 @@ zen_mode.setup {
},
gitsigns = { enabled = true },
tmux = { enabled = true },
}
},
}