Ada mode update
Test Neovim config on push / build (ubuntu-20.04) (push) Has been cancelled
Details
Test Neovim config on push / build (ubuntu-20.04) (push) Has been cancelled
Details
This commit is contained in:
parent
742e6f614a
commit
d79f1fd6d4
|
@ -95,7 +95,7 @@ else:
|
||||||
for variable in variables:
|
for variable in variables:
|
||||||
if not variable == "" and not variable.startswith("typ"):
|
if not variable == "" and not variable.startswith("typ"):
|
||||||
variableless = variable.replace("\t", "").replace (" ", "")
|
variableless = variable.replace("\t", "").replace (" ", "")
|
||||||
snip.rv += f"-- @variable {variableless}\n"
|
snip.rv += f"\t-- @variable {variableless}\n"
|
||||||
`-- @description $4
|
`-- @description $4
|
||||||
procedure ${1:`!p snip.rv = fn.split('.')[0].capitalize()`} `!p snip.rv = "" if t[2] == "" else "("`${2:N : Natural}`!p snip.rv = "" if t[2] == "" else ")"` is
|
procedure ${1:`!p snip.rv = fn.split('.')[0].capitalize()`} `!p snip.rv = "" if t[2] == "" else "("`${2:N : Natural}`!p snip.rv = "" if t[2] == "" else ")"` is
|
||||||
$3
|
$3
|
||||||
|
@ -129,7 +129,7 @@ for parameter in parameters:
|
||||||
for parameter in parameter_list:
|
for parameter in parameter_list:
|
||||||
if not parameter == "" and not parameter.startswith("typ"):
|
if not parameter == "" and not parameter.startswith("typ"):
|
||||||
parameterless = parameter.replace("\t", "")
|
parameterless = parameter.replace("\t", "")
|
||||||
snip.rv += f"-- @parameter {parameterless}\n"
|
snip.rv += f"\t-- @parameter {parameterless}\n"
|
||||||
``!p
|
``!p
|
||||||
snip.rv = ""
|
snip.rv = ""
|
||||||
if t[4].startswith("l"):
|
if t[4].startswith("l"):
|
||||||
|
@ -139,7 +139,7 @@ else:
|
||||||
for variable in variables:
|
for variable in variables:
|
||||||
if not variable == "" and not variable.startswith("typ") and not variable.startswith("--"):
|
if not variable == "" and not variable.startswith("typ") and not variable.startswith("--"):
|
||||||
variableless = variable.replace("\t", "").replace (" ", "")
|
variableless = variable.replace("\t", "").replace (" ", "")
|
||||||
snip.rv += f"-- @variable {variableless}\n"
|
snip.rv += f"\t-- @variable {variableless}\n"
|
||||||
` -- @description $5
|
` -- @description $5
|
||||||
function ${1:`!p snip.rv = fn.split('.')[0].capitalize()`} `!p snip.rv = "" if t[2] == "" else "("`${2:N : Natural}`!p snip.rv = "" if t[2] == "" else ")"` return ${3:Natural} is
|
function ${1:`!p snip.rv = fn.split('.')[0].capitalize()`} `!p snip.rv = "" if t[2] == "" else "("`${2:N : Natural}`!p snip.rv = "" if t[2] == "" else ")"` return ${3:Natural} is
|
||||||
$4
|
$4
|
||||||
|
@ -187,7 +187,8 @@ if t[6] == "y":
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet package "Create package configuration" b
|
snippet package "Create package configuration" b
|
||||||
package ${1:body }${2:`!p snip.rv = fn.split('.')[0]`} is
|
package ${1:body }${2:`!p package_name = fn.split('.')[0]
|
||||||
|
snip.rv = package_name[0].upper() + package_name[1:]`} is
|
||||||
$0
|
$0
|
||||||
end $2;
|
end $2;
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
|
@ -11,7 +11,7 @@ if __name__ == "__main__":
|
||||||
$0
|
$0
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet docmodule "Documentation for modules" A
|
snippet docmodule "Documentation for modules"
|
||||||
"""
|
"""
|
||||||
File: `!p snip.rv = fn`
|
File: `!p snip.rv = fn`
|
||||||
Author: ${1:Yannick Reiß}
|
Author: ${1:Yannick Reiß}
|
||||||
|
@ -21,7 +21,7 @@ Description: ${2:No further description}
|
||||||
$0
|
$0
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet def "Python Function" A
|
snippet def "Python Function"
|
||||||
def ${1:function}(${2}):
|
def ${1:function}(${2}):
|
||||||
"""
|
"""
|
||||||
@name $1
|
@name $1
|
||||||
|
|
|
@ -32,7 +32,7 @@ end
|
||||||
|
|
||||||
-- Update function and call
|
-- Update function and call
|
||||||
function Update_Sys()
|
function Update_Sys()
|
||||||
vim.cmd("TSUpdate")
|
--vim.cmd("TSUpdate")
|
||||||
vim.cmd("MasonUpdate")
|
vim.cmd("MasonUpdate")
|
||||||
vim.cmd("Lazy sync")
|
vim.cmd("Lazy sync")
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue