File tree Expand file tree Collapse file tree 2 files changed +77
-0
lines changed
Expand file tree Collapse file tree 2 files changed +77
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ # shellcheck disable=SC2034
4+ # "'pkg_cmd_name' appears unused. Verify it or export it."
5+
6+ __init_neovim () {
7+ set -e
8+ set -u
9+
10+ # #################
11+ # Install neovim #
12+ # #################
13+
14+ # Every package should define these 6 variables
15+ pkg_cmd_name=" nvim"
16+
17+ pkg_dst_cmd=" $HOME /.local/opt/neovim/bin/nvim"
18+ pkg_dst_dir=" $HOME /.local/opt/neovim"
19+ pkg_dst=" $pkg_dst_dir "
20+
21+ pkg_src_cmd=" $HOME /.local/opt/neovim-v$WEBI_VERSION /bin/nvim"
22+ pkg_src_dir=" $HOME /.local/opt/neovim-v$WEBI_VERSION "
23+ pkg_src=" $pkg_src_dir "
24+
25+ # pkg_install must be defined by every package
26+ pkg_install () {
27+ # mv ./nvim-* ~/.local/opt/neovim-macos
28+ mv ./nvim-* " ${pkg_src} "
29+ }
30+
31+ # pkg_get_current_version is recommended, but not required
32+ pkg_get_current_version () {
33+ # 'nvim --version' has output in this format:
34+ # NVIM v0.7.2
35+ # Build type: Release
36+ # LuaJIT 2.1.0-beta3
37+ # Compiled by runner@Mac-1656256708179.local
38+ #
39+ # Features: +acl +iconv +tui
40+ # See ":help feature-compile"
41+ #
42+ # system vimrc file: "$VIM/sysinit.vim"
43+ # fall-back for $VIM: "/share/nvim"
44+ #
45+ # Run :checkhealth for more info
46+
47+ # This trims it down to just the version number:
48+ # 0.7.2
49+ nvim --version 2> /dev/null |
50+ head -n 1 |
51+ cut -d ' ' -f 2 |
52+ sed ' s/v//'
53+ }
54+
55+ }
56+
57+ __init_neovim
Original file line number Diff line number Diff line change 1+ 'use strict' ;
2+
3+ var github = require ( '../_common/github.js' ) ;
4+ var owner = 'neovim' ;
5+ var repo = 'neovim' ;
6+
7+ module . exports = function ( request ) {
8+ return github ( request , owner , repo ) . then ( function ( all ) {
9+ return all ;
10+ } ) ;
11+ } ;
12+
13+ if ( module === require . main ) {
14+ module . exports ( require ( '@root/request' ) ) . then ( function ( all ) {
15+ all = require ( '../_webi/normalize.js' ) ( all ) ;
16+ all . releases = all . releases . slice ( 0 , 10 ) ;
17+ //console.info(JSON.stringify(all));
18+ console . info ( JSON . stringify ( all , null , 2 ) ) ;
19+ } ) ;
20+ }
You can’t perform that action at this time.
0 commit comments