Skip to content

feat: add Neovim + LazyVim + avante.nvim setup#19

Merged
Clsan merged 1 commit into
masterfrom
feat/nvim-lazyvim-avante
Jun 12, 2026
Merged

feat: add Neovim + LazyVim + avante.nvim setup#19
Clsan merged 1 commit into
masterfrom
feat/nvim-lazyvim-avante

Conversation

@Clsan

@Clsan Clsan commented Jun 12, 2026

Copy link
Copy Markdown
Owner

What

Adds Neovim provisioning to the personal Mac setup, alongside the existing classic Vim config (both coexist).

Changes

  • nvim_setup.sh (new module, sourced by setup.sh):
    • brew_install: neovim, ripgrep, fd, lazygit + cask font-jetbrains-mono-nerd-font
    • Bootstraps the LazyVim starter into ~/.config/nvim only if init.lua is absent (idempotent — won't clobber an existing config)
    • Places avante.lua into ~/.config/nvim/lua/plugins/ only if it doesn't already exist, so a locally-customized provider config is preserved on re-run. Uses the repo file on a git checkout, else curl from raw GitHub (avoids PR-CI 404 on not-yet-merged files — same local-vs-download pattern as cleanup_downloads).
  • nvim/lua/plugins/avante.lua (new): avante.nvim plugin spec. Provider intentionally unset — this is a personal-setup repo, so no AI gateway is baked in; a commented example shows how to wire one up. build = "make" (prebuilt binaries).
  • setup.sh: source nvim_setup.sh right after the Vim section.
  • common.sh: add nvim_setup to the cleanup_downloads list.
  • README.md: add nvim_setup.sh to both download one-liners.

Verification

  • bash -n (system bash 3.2) parses cleanly on all *.sh.
  • Applied locally end-to-end: fd/lazygit installed, LazyVim sync installed + built avante (prebuilt v0.1.2), avante loads without errors. (CI smoke-macos re-validates by running setup.sh.)

🤖 Generated with Claude Code

Add a dedicated nvim_setup.sh module (sourced by setup.sh, alongside the
existing classic Vim section) that installs Neovim and its deps, bootstraps
LazyVim, and drops an avante.nvim plugin spec.

- nvim_setup.sh: brew neovim/ripgrep/fd/lazygit + JetBrains Mono Nerd Font;
  clone LazyVim starter only if ~/.config/nvim is empty; place avante.lua only
  if it doesn't already exist (preserves locally-customized provider config).
  Uses repo file on git checkout, curl from raw GitHub in download mode.
- nvim/lua/plugins/avante.lua: generic spec with provider intentionally unset
  (personal-setup repo — no gateway baked in).
- setup.sh: source nvim_setup.sh after the Vim section.
- common.sh: include nvim_setup in cleanup_downloads list.
- README.md: add nvim_setup.sh to both download one-liners.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Clsan Clsan merged commit 1cd6128 into master Jun 12, 2026
3 checks passed
@Clsan Clsan deleted the feat/nvim-lazyvim-avante branch June 12, 2026 06:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant