Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Adriano's NvChad config

My NvChad config ported to nix4nvchad.

The reproducible source of truth lives in nvchad-starter/. Do not edit ~/.config/nvim as the primary configuration; the Nix wrapper prepares the runtime config from this repository.

Usage

Run without installing:

nix run .# --allow-import-from-derivation

Build the wrapper:

nix build .#nvchad --allow-import-from-derivation --print-build-logs

Install into the current Nix profile:

nix profile install .#nvchad --allow-import-from-derivation

Then confirm the profile wrapper is first in PATH:

which nvim
nvim --version

Layout

  • flake.nix packages NvChad through nix4nvchad and adds external tools used by plugins, formatters, and LSP servers.
  • flake.lock pins Nix inputs.
  • nvchad-starter/ contains the NvChad Lua configuration and plugin lockfile.
  • nvchad-starter/lazy-lock.json pins Lazy.nvim plugins.

Treesitter

This config pins nvim-treesitter to branch main because the legacy master branch is not compatible with Neovim 0.12.

The flake includes the tree-sitter CLI in extraPackages. The Lua config uses the nvim-treesitter main API (require("nvim-treesitter").install, get_available, and get_installed) to install base parsers and automatically install missing parsers for opened filetypes.

Theme sync

The chadwal theme is generated by WallSync, loaded as a regular Lazy.nvim plugin. The old Python pywal/chadwal.py daemon and local Pywal templates are not used.

lua/themes/chadwal.lua is only a minimal first-boot fallback to let Base46 compile before WallSync has written its generated chadwal theme into Lazy's base46 plugin directory.

Home Manager

The flake exposes homeManagerModules.default, but direct profile installation is the current preferred setup.

About

My NvChad config ported to nix4nvim.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages