installation wiz

This commit is contained in:
Harivansh Rathi 2026-01-21 16:59:34 -05:00
parent 2cfd4358fb
commit 9666bfb715
3 changed files with 43 additions and 7 deletions

View file

@ -1,5 +1,24 @@
# nvim # nvim
## Installation
**Minimal (default)** - lightweight, no LSP, no AI completion:
```bash
curl -fsSL https://raw.githubusercontent.com/harivansh-afk/nvim/main/install.sh | bash
```
**Full install** - includes LSP + supermaven AI completion:
```bash
curl -fsSL https://raw.githubusercontent.com/harivansh-afk/nvim/main/install.sh | bash -s -- --bells-and-whistles
```
Other options:
```bash
--skip-nvim # Config only (skip nvim install)
--skip-config # Nvim only (skip config install)
--no-path # Don't modify shell rc files
```
## Repo tree ## Repo tree
```text ```text

View file

@ -51,9 +51,6 @@ vim.opt.ruler = false -- Disable native ruler (NvChad statusline shows position
vim.opt.cmdheight = 0 -- Hide command line when not in use vim.opt.cmdheight = 0 -- Hide command line when not in use
vim.opt.laststatus = 3 -- Global statusline at the very bottom vim.opt.laststatus = 3 -- Global statusline at the very bottom
-- Enable cursor blinking
vim.opt.guicursor = "n-v-c:block-blinkwait700-blinkoff400-blinkon250,i-ci-ve:ver25-blinkwait700-blinkoff400-blinkon250,r-cr:hor20-blinkwait700-blinkoff400-blinkon250"
-- Keymaps -- Keymaps
vim.keymap.set("n", "<leader>q", ":q<CR>", { desc = "Quit" }) vim.keymap.set("n", "<leader>q", ":q<CR>", { desc = "Quit" })

View file

@ -22,6 +22,7 @@ REPO_URL="https://github.com/harivansh-afk/nvim.git"
SKIP_NVIM=0 SKIP_NVIM=0
SKIP_CONFIG=0 SKIP_CONFIG=0
NO_PATH=0 NO_PATH=0
FULL_INSTALL=0
while [[ $# -gt 0 ]]; do while [[ $# -gt 0 ]]; do
case "$1" in case "$1" in
@ -33,15 +34,17 @@ while [[ $# -gt 0 ]]; do
--skip-nvim) SKIP_NVIM=1; shift ;; --skip-nvim) SKIP_NVIM=1; shift ;;
--skip-config) SKIP_CONFIG=1; shift ;; --skip-config) SKIP_CONFIG=1; shift ;;
--no-path) NO_PATH=1; shift ;; --no-path) NO_PATH=1; shift ;;
--bells-and-whistles) FULL_INSTALL=1; shift ;;
-h|--help) -h|--help)
cat <<'EOF' cat <<'EOF'
Usage: install.sh [options] Usage: install.sh [options]
Options: Options:
--repo URL Clone config from URL (default: repo in this script) --repo URL Clone config from URL (default: repo in this script)
--skip-nvim Do not install Neovim --skip-nvim Do not install Neovim
--skip-config Do not install config --skip-config Do not install config
--no-path Do not modify shell rc files --no-path Do not modify shell rc files
--bells-and-whistles Full install with LSP and AI completion (default: minimal)
EOF EOF
exit 0 exit 0
;; ;;
@ -224,6 +227,20 @@ install_config() {
mkdir -p "${CONFIG_DIR}/undodir" mkdir -p "${CONFIG_DIR}/undodir"
} }
strip_heavy_plugins() {
local plugins_dir="${CONFIG_DIR}/lua/plugins"
local heavy_plugins=(
"supermaven.lua"
"lsp.lua"
)
for plugin in "${heavy_plugins[@]}"; do
if [[ -f "${plugins_dir}/${plugin}" ]]; then
rm "${plugins_dir}/${plugin}"
log "Removed ${plugin} (minimal install)"
fi
done
}
log "Installing nvim config from ${REPO_URL} (${OS}/${ARCH})" log "Installing nvim config from ${REPO_URL} (${OS}/${ARCH})"
ensure_local_bin_path ensure_local_bin_path
@ -233,6 +250,9 @@ fi
if [[ "$SKIP_CONFIG" -eq 0 ]]; then if [[ "$SKIP_CONFIG" -eq 0 ]]; then
install_config install_config
if [[ "$FULL_INSTALL" -eq 0 ]]; then
strip_heavy_plugins
fi
fi fi
if have nvim; then if have nvim; then