11.stylix/modules/nixvim
Matt Sturgeon 003e6770af
nixvim: move standalone-mode docs from configuration → nixvim readme (#1219)
Link: https://github.com/danth/stylix/pull/1219

Reviewed-by: awwpotato <awwpotato@voidq.com>
Reviewed-by: Flameopathic <64027365+Flameopathic@users.noreply.github.com>
2025-05-04 09:54:32 -07:00
..
darwin.nix Adds support for styling nixvim (#194) 2023-12-19 16:40:37 +00:00
hm.nix Adds support for styling nixvim (#194) 2023-12-19 16:40:37 +00:00
meta.nix Merge branch 'master' into treewide-init-maintainers 2025-04-13 19:59:13 +02:00
nixos.nix Adds support for styling nixvim (#194) 2023-12-19 16:40:37 +00:00
nixvim.nix {neovim,nixvim}: add transparentBackground.numberLine option (#1178) 2025-05-01 17:03:04 +02:00
README.md nixvim: move standalone-mode docs from configuration → nixvim readme (#1219) 2025-05-04 09:54:32 -07:00

NixVim

This module themes Neovim using the options provided by NixVim.

Important

This module will have no effect unless the desired Nixvim module is properly installed and imported into your configuration.

Ensure you are configuring this module on the same platform (NixOS, Home Manager, Darwin) as where you installed Nixvim.

Standalone Mode

When using a NixOS or home-manager installation of NixVim, you can use Stylix as normal. However, when using Nixvim's "standalone" configuration mode, you will need to pass Stylix's generated config to Nixvim yourself.

The generated config can be accessed as config.lib.stylix.nixvim.config. You can use this as a module in your standalone Nixvim Configuration or an extension of it.

For example:

{
  inputs,
  config,
  pkgs,
  ...
}:
let
  inherit (pkgs.stdenv.hostPlatform) system;
  nixvim-package = inputs.nixvim-config.packages.${system}.default;
  extended-nixvim = nixvim-package.extend config.lib.stylix.nixvim.config;
in
{
  environment.systemPackages = [ extended-nixvim ];
}
  • Vim: themes Vim using the standard Home Manager options.
  • Neovim: themes Neovim using the standard Home Manager options.
  • nvf: themes Neovim using the options provided by nvf.