dotfiles/modules/common/neovim/config/colors.nix

23 lines
503 B
Nix
Raw Normal View History

{ pkgs, lib, config, ... }: {
2023-07-30 03:56:41 +00:00
# Sets Neovim colors based on Nix colorscheme
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;
2023-04-16 00:55:56 +00:00
# Telescope isn't working, shut off for now
lua = ''
require('base16-colorscheme').with_config {
telescope = false,
}
'';
};
}