Ada project shell integration
Test Neovim config on push / build (ubuntu-20.04) (push) Failing after 32s
Details
Test Neovim config on push / build (ubuntu-20.04) (push) Failing after 32s
Details
This commit is contained in:
parent
61fb308e60
commit
577fd649e3
|
@ -131,34 +131,6 @@ snip.rv = candidate
|
|||
end $1;$0
|
||||
endsnippet
|
||||
|
||||
snippet if "If condition" b
|
||||
if $1 then
|
||||
$2
|
||||
$3`!p snip.rv = complete(t[3], ["elsif", "else", "end if;"])` ${4:`!p if t[3] == "elsif":
|
||||
snip.rv = "condition"
|
||||
else:
|
||||
snip.rv = ""`} `!p
|
||||
if t[3] == "elsif":
|
||||
snip.rv = "then"`
|
||||
$5
|
||||
`!p if t[3] == "end if;":
|
||||
snip.rv = ""
|
||||
else:
|
||||
snip.rv = "end if;"`$0
|
||||
endsnippet
|
||||
|
||||
snippet for "For loop" b
|
||||
for ${1:i} ${2:in ${3:1}..${4:10}} loop
|
||||
$5
|
||||
end loop;$0
|
||||
endsnippet
|
||||
|
||||
snippet while "While loop" b
|
||||
while ${1:Condition} loop
|
||||
$2
|
||||
end loop;$0
|
||||
endsnippet
|
||||
|
||||
snippet type "declare a new type" bA
|
||||
type ${1:TypeName} is ${2:array($3..$4) of }`!p
|
||||
if t[2] == "record":
|
||||
|
@ -180,4 +152,10 @@ project ${1:Default} is
|
|||
for Main use ("${5:main.adb}");
|
||||
for Languages use ("Ada");
|
||||
end $1;
|
||||
-- Create dir? (y/): ${6:no}`!p
|
||||
from os import system
|
||||
if t[6] == "y":
|
||||
system(f"mkdir -p {t[2]}")
|
||||
system(f"mkdir -p {t[3]}")
|
||||
system(f"mkdir -p {t[4]}")`
|
||||
endsnippet
|
||||
|
|
Loading…
Reference in New Issue