diff --git a/zig.vim/README.md b/zig.vim/README.md new file mode 100644 index 000000000..907096ada --- /dev/null +++ b/zig.vim/README.md @@ -0,0 +1,11 @@ +--- +title: zig.vim (alias) +homepage: https://webinstall.dev/vim-zig +tagline: | + `zig.vim` is an alias for `vim-zig` +alias: vim-zig +description: | + See https://webinstall.dev/vim-zig +--- + +`zig.vim` is an alias for `vim-zig` diff --git a/zig.vim/install.ps1 b/zig.vim/install.ps1 new file mode 100644 index 000000000..6807a4f01 --- /dev/null +++ b/zig.vim/install.ps1 @@ -0,0 +1,5 @@ +#!/usr/bin/env pwsh + +Write-Output "'zig.vim@$Env:WEBI_TAG' is an alias for 'vim-zig@$Env:WEBI_VERSION'" +IF ($null -eq $Env:WEBI_HOST -or $Env:WEBI_HOST -eq "") { $Env:WEBI_HOST = "https://webinstall.dev" } +curl.exe -fsSL "$Env:WEBI_HOST/vim-zig@$Env:WEBI_VERSION" | powershell diff --git a/zig.vim/install.sh b/zig.vim/install.sh new file mode 100644 index 000000000..e87558ba3 --- /dev/null +++ b/zig.vim/install.sh @@ -0,0 +1,11 @@ +#!/bin/sh +set -e +set -u + +__redirect_alias_vim_zig() { + echo "'zig.vim@${WEBI_TAG:-}' is an alias for 'vim-zig@${WEBI_VERSION:-}'" + WEBI_HOST=${WEBI_HOST:-"https://webinstall.dev"} + curl -fsSL "$WEBI_HOST/vim-zig@${WEBI_VERSION:-}" | sh +} + +__redirect_alias_vim_zig diff --git a/zig.vim/releases.js b/zig.vim/releases.js new file mode 100644 index 000000000..3a3dee772 --- /dev/null +++ b/zig.vim/releases.js @@ -0,0 +1,19 @@ +'use strict'; + +var git = require('../_common/git-tag.js'); +var gitUrl = 'https://github.com/ziglang/zig.vim.git'; + +module.exports = async function (request) { + let all = await git(gitUrl); + + return all; +}; + +if (module === require.main) { + module.exports(require('@root/request')).then(function (all) { + all = require('../_webi/normalize.js')(all); + + let samples = JSON.stringify(all, null, 2); + console.info(samples); + }); +}