fix neovim
This commit is contained in:
parent
7712235b6e
commit
1f645e2aa8
4 changed files with 755 additions and 26 deletions
|
@ -55,8 +55,10 @@ bind C-D detach
|
|||
# ==========
|
||||
# My options
|
||||
set-option -g terminal-overrides ',xterm-256color:RGB'
|
||||
set-option -sa terminal-features ',alacritty:LRGB'
|
||||
set -g detach-on-destroy off
|
||||
set -g renumber-windows on
|
||||
set -g status-position top
|
||||
set -sg escape-time 0
|
||||
|
||||
set-option -g focus-events on
|
||||
|
|
|
@ -1,7 +1,4 @@
|
|||
{ settings, lib, pkgs, ... } @ args:
|
||||
let
|
||||
tmux = pkgs.tmuxPlugins;
|
||||
in
|
||||
{ lib, pkgs, ... }:
|
||||
{
|
||||
# home manager doesn't give us an option to add tmux extra config at the top so we do it ourselves here.
|
||||
xdg.configFile."tmux/tmux.conf".text = lib.mkBefore (builtins.readFile ./tmux-reset.conf);
|
||||
|
@ -23,9 +20,9 @@ in
|
|||
aggressiveResize = true;
|
||||
sensibleOnTop = false;
|
||||
|
||||
plugins = [
|
||||
plugins = with pkgs.tmuxPlugins; [
|
||||
{
|
||||
plugin = tmux.catppuccin.overrideAttrs (_: {
|
||||
plugin = catppuccin.overrideAttrs (_: {
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "ringofstorms";
|
||||
repo = "tmux-catppuccin-coal";
|
||||
|
@ -54,6 +51,20 @@ in
|
|||
set -g @catppuccin_date_time_text "%H:%M"
|
||||
'';
|
||||
}
|
||||
{
|
||||
plugin = resurrect;
|
||||
extraConfig = ''
|
||||
set -g @resurrect-strategy-nvim 'session'
|
||||
set -g @resurrect-capture-pane-contents 'on'
|
||||
'';
|
||||
}
|
||||
{
|
||||
plugin = continuum;
|
||||
extraConfig = ''
|
||||
set -g @continuum-restore 'on'
|
||||
# set -g @continuum-save-interval '60' # minutes
|
||||
'';
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
|
@ -62,5 +73,3 @@ in
|
|||
tat = "tmux ls 2>/dev/null && tmux attach-session -t \"$(tmux ls | head -n1 | cut -d: -f1)\" || tmux new-session";
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue