fix neovim colors

This commit is contained in:
Noah Masur
2025-03-09 16:31:29 +00:00
parent e90c6b1724
commit f59ac536a2
3 changed files with 42 additions and 39 deletions

View File

@ -8,20 +8,20 @@
# 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.";
# };
options.colors = lib.mkOption {
type = lib.types.attrsOf lib.types.str;
description = "Attrset of base16 colorscheme key value pairs.";
};
# config = lib.mkIf config.colors {
# plugins = [ pkgs.vimPlugins.base16-nvim ];
# setup.base16-colorscheme = config.colors;
#
# # Telescope isn't working, shut off for now
# lua = ''
# require('base16-colorscheme').with_config {
# telescope = false,
# }
# '';
# };
config = {
plugins = [ pkgs.vimPlugins.base16-nvim ];
setup.base16-colorscheme = config.colors;
# Telescope isn't working, shut off for now
lua = ''
require('base16-colorscheme').with_config {
telescope = false,
}
'';
};
}

View File

@ -28,10 +28,10 @@
{
pkgs,
# colors ? null,
# terraform ? false,
# github ? false,
# kubernetes ? false,
colors ? (import ../../../../../../colorscheme/gruvbox).dark,
terraform ? false,
github ? false,
kubernetes ? false,
...
}:
@ -40,15 +40,15 @@
pkgs.neovimBuilder {
package = pkgs.neovim-unwrapped;
inherit
# colors
# terraform
# github
# kubernetes
colors
terraform
github
kubernetes
;
imports = [
./config/align.nix
./config/bufferline.nix
# ./config/colors.nix
./config/colors.nix
./config/completion.nix
./config/gitsigns.nix
./config/lsp.nix