mirror of
https://github.com/nmasur/dotfiles
synced 2025-07-05 05:40:13 +00:00
refactor neovim colors
using base16 color plugin instead of homemade
This commit is contained in:
13
modules/common/neovim/config/colors.nix
Normal file
13
modules/common/neovim/config/colors.nix
Normal file
@ -0,0 +1,13 @@
|
||||
{ pkgs, lib, config, ... }: {
|
||||
|
||||
options.colors = lib.mkOption {
|
||||
type = lib.types.attrsOf lib.types.str;
|
||||
description = "Attrset of base16 colorscheme key value pairs.";
|
||||
};
|
||||
|
||||
config = {
|
||||
plugins = [ pkgs.vimPlugins.nvim-base16 ];
|
||||
setup.base16-colorscheme = config.colors;
|
||||
};
|
||||
|
||||
}
|
@ -4,7 +4,7 @@ let
|
||||
|
||||
neovim = import ./package {
|
||||
inherit pkgs;
|
||||
colors = import config.theme.colors.neovimConfig { inherit pkgs; };
|
||||
colors = config.theme.colors;
|
||||
};
|
||||
|
||||
in {
|
||||
|
@ -26,13 +26,15 @@
|
||||
# ] ++ extraConfig;
|
||||
# }
|
||||
|
||||
{ pkgs, colors ? { }, ... }:
|
||||
{ pkgs, colors, ... }:
|
||||
|
||||
pkgs.neovimBuilder {
|
||||
package = pkgs.neovim-unwrapped;
|
||||
inherit colors;
|
||||
imports = [
|
||||
../config/align.nix
|
||||
../config/bufferline.nix
|
||||
../config/colors.nix
|
||||
../config/completion.nix
|
||||
../config/gitsigns.nix
|
||||
../config/lsp.nix
|
||||
@ -42,6 +44,5 @@ pkgs.neovimBuilder {
|
||||
../config/telescope.nix
|
||||
../config/toggleterm.nix
|
||||
../config/tree.nix
|
||||
colors
|
||||
];
|
||||
}
|
||||
|
Reference in New Issue
Block a user