Compare commits
2 Commits
10c2b99fb8
...
55e22fd3f7
Author | SHA1 | Date |
---|---|---|
|
55e22fd3f7 | |
|
963e7a1f97 |
|
@ -0,0 +1,23 @@
|
||||||
|
snippet prog "Add new program template" b
|
||||||
|
Program ${1:Name}`!p snip.rv = "" if t[2] == "" else " ("`${2:FileList}`!p snip.rv = "" if t[2] == "" else ")"`;`!p
|
||||||
|
if t[3] == "":
|
||||||
|
snip.rv = ""
|
||||||
|
else:
|
||||||
|
snip.rv = "\nconst\n (* Constant declarations *)\n "`${3:Const}`!p
|
||||||
|
if t[4] == "":
|
||||||
|
snip.rv = ""
|
||||||
|
else:
|
||||||
|
snip.rv = "\ntype\n (* Type declarations *)\n "`${4:Types}`!p
|
||||||
|
if t[5] == "":
|
||||||
|
snip.rv = ""
|
||||||
|
else:
|
||||||
|
snip.rv = "\nvar\n (* Variable declarations *)\n "`${5:Variables}
|
||||||
|
|
||||||
|
Begin
|
||||||
|
$0
|
||||||
|
End.
|
||||||
|
endsnippet
|
||||||
|
|
||||||
|
snippet -- "Add multiline comment" A
|
||||||
|
(* $1 *)$0
|
||||||
|
endsnippet
|
|
@ -1,3 +1,7 @@
|
||||||
|
snippet cc "Add Citation" i
|
||||||
|
\\cite{$1}$0
|
||||||
|
endsnippet
|
||||||
|
|
||||||
snippet colx "textcolor"
|
snippet colx "textcolor"
|
||||||
\\textcolor{${1:red}}{$2}$0
|
\\textcolor{${1:red}}{$2}$0
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
|
@ -24,6 +24,7 @@ vim.g.ale_fixers = {
|
||||||
lua = { "stylua" },
|
lua = { "stylua" },
|
||||||
markdown = { "prettier", "pandoc" },
|
markdown = { "prettier", "pandoc" },
|
||||||
python = { "yapf" },
|
python = { "yapf" },
|
||||||
|
pascal = { "ptop" },
|
||||||
}
|
}
|
||||||
|
|
||||||
vim.keymap.set("n", "<leader>lf", ":ALEFix<CR>")
|
vim.keymap.set("n", "<leader>lf", ":ALEFix<CR>")
|
||||||
|
|
Loading…
Reference in New Issue