2023-04-15 22:38:03 +00:00
|
|
|
{ pkgs, lib, config, ... }: {
|
|
|
|
|
2023-07-30 03:56:41 +00:00
|
|
|
# Sets Neovim colors based on Nix colorscheme
|
|
|
|
|
2023-04-15 22:38:03 +00:00
|
|
|
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,
|
|
|
|
}
|
|
|
|
'';
|
2023-04-15 22:38:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|