mirror of
https://github.com/nmasur/dotfiles
synced 2024-10-19 11:59:03 +00:00
23 lines
503 B
Nix
23 lines
503 B
Nix
{ pkgs, lib, config, ... }: {
|
|
|
|
# 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;
|
|
|
|
# Telescope isn't working, shut off for now
|
|
lua = ''
|
|
require('base16-colorscheme').with_config {
|
|
telescope = false,
|
|
}
|
|
'';
|
|
};
|
|
|
|
}
|