kanagawa colour scheme #443
-
Hi I'm trying to figure out how setup kanagawa colour scheme in There is a nix package for it: https://search.nixos.org/packages?channel=23.05&show=vimPlugins.kanagawa-nvim&from=0&size=50&sort=relevance&type=packages&query=kanagawa I got
{
description = "A nixvim configuration";
inputs = {
nixvim.url = "github:pta2002/nixvim";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = {
nixpkgs,
nixvim,
flake-utils,
...
} @ inputs: let
config = import ./config; # import the module directly
in
flake-utils.lib.eachDefaultSystem (system: let
nixvimLib = nixvim.lib.${system};
pkgs = import nixpkgs {inherit system;};
nixvim' = nixvim.legacyPackages.${system};
nvim = nixvim'.makeNixvimWithModule {
inherit pkgs;
module = config;
};
in {
checks = {
# Run `nix flake check .` to verify that your config is not broken
default = nixvimLib.check.mkTestDerivationFromNvim {
inherit nvim;
name = "A nixvim configuration";
};
};
### ADDED
programs.nixvim = {
extraPlugins = [ pkgs.vimPlugins.kanagawa-nvim ];
colorscheme = "kanagawa-nvim";
};
###
packages = {
# Lets you run `nix run .` to start nixvim
default = nvim;
};
});
}
{
# Import all your configuration modules here
imports = [
./bufferline.nix
];
#colorschemes.gruvbox.enable = true;
### Doesn't recognise scheme
#colorschemes.kanagawa-nvim.enable = true;
} |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hi ! I made a PR to add support for kanagawa though :) |
Beta Was this translation helpful? Give feedback.
-
To expand a little. This would work if you put it in the config, and you're also calling the colorscheme by the wrong name. You can take the added part out of { pkgs, ... }:
{
imports = [
./bufferline.nix
];
extraPlugins = with pkgs; [ vimPlugins.kanagawa-nvim ];
colorscheme = "kanagawa";
} |
Beta Was this translation helpful? Give feedback.
@LaughingBubba the PR has just been merged ! If you are satisfied with the solution, could you please mark this thread as solved ?