Moved tmux theming from nvim module to tmux module
This commit is contained in:
parent
2ad5af4f90
commit
a656b8f481
|
@ -14,6 +14,8 @@ in {
|
|||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
xdg.dataFile."tmux-theme".source = ./tmux_theme;
|
||||
|
||||
programs.tmux = {
|
||||
enable = true;
|
||||
keyMode = "vi";
|
||||
|
@ -82,6 +84,7 @@ in {
|
|||
# Eye Candy
|
||||
# set -g @plugin 'mattdavis90/base16-tmux'
|
||||
# set -g @colors-base16 'darktooth'
|
||||
source-file ${config.xdg.dataHome}/tmux-theme;
|
||||
|
||||
# Smart pane switching with awareness of Vim splits.
|
||||
# See: https://github.com/christoomey/vim-tmux-navigator
|
||||
|
|
|
@ -3,25 +3,16 @@
|
|||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
|
||||
cfg = config.aa.apps.neovim;
|
||||
in {
|
||||
options.aa.apps.neovim = with types; {
|
||||
options.aa.apps.neovim = {
|
||||
enable = mkEnableOption "neovim";
|
||||
|
||||
tmuxThemePath = mkOption {
|
||||
type = str;
|
||||
default = "vim-tmuxline/tmux_theme";
|
||||
description = "Where to store tmux theme generated by vim-tmuxline";
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [neovim];
|
||||
|
||||
aa.home.dataFile = {
|
||||
${cfg.tmuxThemePath}.source = ./tmux_theme;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Generates a tmux statusline theme based off the theme in neovim
|
||||
# May require some edits
|
||||
|
||||
nvim -c ":Tmuxline vim_statusline_1 | TmuxlineSnapshot! $(dirname "$0")/tmux_theme | qa!"
|
|
@ -1,19 +1,19 @@
|
|||
{
|
||||
options,
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
inputs,
|
||||
namespace,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.aa.home;
|
||||
}: let
|
||||
inherit (lib) mkAliasDefinitions mkOption;
|
||||
inherit (lib.types) attrs;
|
||||
in {
|
||||
imports = with inputs; [
|
||||
home-manager.nixosModules.home-manager
|
||||
];
|
||||
|
||||
options.aa.home = with types; {
|
||||
options.${namespace}.home = {
|
||||
file = mkOption {
|
||||
type = attrs;
|
||||
default = {};
|
||||
|
@ -37,7 +37,7 @@ in {
|
|||
};
|
||||
|
||||
config = {
|
||||
aa.home.extraOptions = {
|
||||
${namespace}.home.extraOptions = {
|
||||
home.stateVersion = config.system.stateVersion;
|
||||
home.file = mkAliasDefinitions options.aa.home.file;
|
||||
xdg = {
|
||||
|
|
Loading…
Reference in a new issue