Closed antotocar34 closed 1 year ago
Allows user to add their own themes when using neovim-flake as an input. Example (which we may want to add to docs once extra-inputs is merged into master).
neovim-flake
extra-inputs
master
{ inputs = { neovim-flake.url = "path:antotocar34/neovim-flake?ref=theme_modularize"; nord = { url = "github:shaunsingh/nord.nvim"; flake = false; }; }; outputs = {nixpkgs, neovim-flake, ...}@inputs: let system = "x86_64-linux"; pkgs = nixpkgs.legacyPackages.${system}; configModule.config.vim = { theme.enable = true; theme.name = "nord"; theme.supportedThemes."nord" = { setup = '' require('nord').set() vim.cmd[[colorscheme nord]] ''; }; }; customNeovim = neovim-flake.lib.neovimConfiguration { extraInputs = { inherit (inputs) nord; }; modules = [ configModule ]; inherit pkgs; }; in { packages.${system}.neovim = customNeovim.neovim; }; }
Looks great just two things:
supported_themes.nix
Should I squash into one commit?
Yep if you could squash it please. Otherwise lgtm!
Allows user to add their own themes when using
neovim-flake
as an input. Example (which we may want to add to docs onceextra-inputs
is merged intomaster
).