format the repo files
This commit is contained in:
@@ -9,7 +9,6 @@
|
||||
# └─ default.nix *
|
||||
# └─ ...
|
||||
#
|
||||
|
||||
[
|
||||
./git.nix
|
||||
./tmux.nix
|
||||
|
||||
@@ -1,10 +1,7 @@
|
||||
#
|
||||
# Tmux
|
||||
#
|
||||
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
{pkgs, ...}: {
|
||||
programs = {
|
||||
tmux = {
|
||||
enable = true;
|
||||
@@ -17,24 +14,24 @@
|
||||
shortcut = "Space";
|
||||
baseIndex = 1;
|
||||
plugins = with pkgs.tmuxPlugins; [
|
||||
yank
|
||||
sidebar
|
||||
# {
|
||||
# plugin = dracula;
|
||||
# extraConfig = "
|
||||
# set -g @dracula-show-powerline true
|
||||
# set -g @dracula-plugins 'git cpu-usage ram-usage battery time'
|
||||
# set -g @dracula-border-contrast true
|
||||
# ";
|
||||
# plugin = catppuccin;
|
||||
# extraConfig = "
|
||||
# set -g @catppuccin_flavour 'macchiato'
|
||||
# set -g @catppuccin_window_tabs_enabled 'on'
|
||||
# set -g @catppuccin_host 'on'
|
||||
# set -g @catppuccin_user 'on'
|
||||
# set -g @catppuccin_date_time '%Y-%m-%d %H:%M'
|
||||
# ";
|
||||
# }
|
||||
yank
|
||||
sidebar
|
||||
# {
|
||||
# plugin = dracula;
|
||||
# extraConfig = "
|
||||
# set -g @dracula-show-powerline true
|
||||
# set -g @dracula-plugins 'git cpu-usage ram-usage battery time'
|
||||
# set -g @dracula-border-contrast true
|
||||
# ";
|
||||
# plugin = catppuccin;
|
||||
# extraConfig = "
|
||||
# set -g @catppuccin_flavour 'macchiato'
|
||||
# set -g @catppuccin_window_tabs_enabled 'on'
|
||||
# set -g @catppuccin_host 'on'
|
||||
# set -g @catppuccin_user 'on'
|
||||
# set -g @catppuccin_date_time '%Y-%m-%d %H:%M'
|
||||
# ";
|
||||
# }
|
||||
];
|
||||
extraConfig = ''
|
||||
set -g mouse on
|
||||
@@ -45,7 +42,7 @@
|
||||
bind-key v split-window -v -c "#{pane_current_path}"
|
||||
unbind '"'
|
||||
unbind '%'
|
||||
|
||||
|
||||
# moving between windows with vim movement keys
|
||||
bind m select-pane -L
|
||||
bind n select-pane -D
|
||||
@@ -55,19 +52,19 @@
|
||||
# moving between windows with vim movement keys
|
||||
bind -r C-m select-window -t :-
|
||||
bind -r C-i select-window -t :+
|
||||
|
||||
|
||||
# Vim style X clipboard integration↲
|
||||
bind-key -T copy-mode-vi 'v' send-keys -X begin-selection
|
||||
bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle
|
||||
bind-key -T copy-mode-vi 'y' send-keys -X copy-selection-and-cancel
|
||||
bind-key P run "xsel -o | tmux load-buffer - ; tmux paste-buffer"
|
||||
|
||||
|
||||
# resize panes with vim movement keys
|
||||
bind -r M resize-pane -L 5
|
||||
bind -r N resize-pane -D 5
|
||||
bind -r E resize-pane -U 5
|
||||
bind -r I resize-pane -R 5
|
||||
|
||||
|
||||
# bindings for pane joining and breaking
|
||||
bind < split-window -h \; choose-window 'kill-pane ; join-pane -hs %%'
|
||||
bind > break-pane -d
|
||||
|
||||
@@ -1,39 +1,37 @@
|
||||
#
|
||||
# Shell
|
||||
#
|
||||
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
{pkgs, ...}: {
|
||||
programs = {
|
||||
zsh = {
|
||||
enable = true;
|
||||
autosuggestion.enable = true; # Auto suggest options and highlights syntact, searches in history for options
|
||||
autosuggestion.enable = true; # Auto suggest options and highlights syntact, searches in history for options
|
||||
syntaxHighlighting.enable = true;
|
||||
history.size = 10000;
|
||||
|
||||
oh-my-zsh = { # Extra plugins for zsh
|
||||
oh-my-zsh = {
|
||||
# Extra plugins for zsh
|
||||
enable = true;
|
||||
plugins = [ "git" ];
|
||||
plugins = ["git"];
|
||||
#custom = "$HOME/.config/zsh_nix/custom";
|
||||
};
|
||||
|
||||
initContent = ''
|
||||
if [[ $WAYLAND_DISPLAY ]]; then
|
||||
[[ $- != *i* ]] && return
|
||||
[[ -z "$TMUX" ]] && (tmux attach || tmux new-session)
|
||||
fi
|
||||
if [[ $WAYLAND_DISPLAY ]]; then
|
||||
[[ $- != *i* ]] && return
|
||||
[[ -z "$TMUX" ]] && (tmux attach || tmux new-session)
|
||||
fi
|
||||
|
||||
# Spaceship
|
||||
source ${pkgs.spaceship-prompt}/share/zsh/site-functions/prompt_spaceship_setup
|
||||
autoload -U promptinit; promptinit
|
||||
# source $HOME/.config/shell/shell_init
|
||||
# Hook direnv
|
||||
# emulate zsh -c "$(direnv hook zsh)"
|
||||
# Swag
|
||||
pfetch # Show fetch logo on terminal start
|
||||
eval "$(direnv hook zsh)"
|
||||
eval "$(ssh-agent)"
|
||||
# Spaceship
|
||||
source ${pkgs.spaceship-prompt}/share/zsh/site-functions/prompt_spaceship_setup
|
||||
autoload -U promptinit; promptinit
|
||||
# source $HOME/.config/shell/shell_init
|
||||
# Hook direnv
|
||||
# emulate zsh -c "$(direnv hook zsh)"
|
||||
# Swag
|
||||
pfetch # Show fetch logo on terminal start
|
||||
eval "$(direnv hook zsh)"
|
||||
eval "$(ssh-agent)"
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user