Include oil
Some checks failed
Test Neovim config on push / build (ubuntu-20.04) (push) Has been cancelled

This commit is contained in:
nichkara
2026-02-14 09:10:04 +01:00
parent 3a69bd9cd9
commit 4b1aa4c634
3 changed files with 9 additions and 5 deletions

View File

@@ -138,7 +138,7 @@ for variable in variables:
if not variable == "" and not variable.startswith("typ") and not variable.startswith("--"):
variableless = variable.replace("\t", "").replace (" ", "")
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
$4
begin
@@ -185,8 +185,12 @@ if t[6] == "y":
endsnippet
snippet package "Create package configuration" b
package ${1:body }${2:`!p package_name = fn.split('.')[0]
snip.rv = package_name[0].upper() + package_name[1:]`} is
package ${1:body }${2:`!p package_name = fn.split('.')[0].replace("-", ".")
components = package_name.split('.')
structured = ""
for component in components:
structured = structured + "." + component[0].upper() + component[1:]
snip.rv = structured[1:]`} is
$0
end $2;
endsnippet