-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(tmux/README): added tmux conf and readme
- Loading branch information
1 parent
d5b5c59
commit eea8e0e
Showing
3 changed files
with
134 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Neovim Config | ||
|
||
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) | ||
|
||
My Valhalla Neovim config. | ||
Banish those unworthy soydev IDEs to the depths of Helheim! | ||
|
||
![Screenshot](./screenshot.jpg) | ||
|
||
## Dependencies | ||
|
||
- Neovim: `neovim fzf ripgrep fd` | ||
- LSPs: `bash-language-server typescript-language-server rust-analyzer | ||
vscode-langservers-extracted pyright lua-language-server` | ||
- Linters: `shellcheck markdownlint-cli2 luacheck ruff eslint luacheck` | ||
- Formatters: `prettierd black shfmt stylua` | ||
|
||
## Tmux | ||
|
||
Additinally you can use my tmux config to have a nice status bar. | ||
They are located in `tmux.conf`. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
###################################################################### | ||
# START OF GENERAL CONFIGURATIONS | ||
###################################################################### | ||
|
||
# set scroll history to 100,000 lines | ||
set-option -g history-limit 100000 | ||
|
||
# Turn on interactivity with mouse | ||
set -g mouse on | ||
|
||
# Enables italics in tmux | ||
set -g default-terminal "tmux-256color" | ||
set -ga terminal-overrides ",xterm-256color*:Tc" | ||
#set -ga terminal-overrides ",st-256color*:Tc" | ||
#set -ga terminal-overrides ",alacritty*:RGB" | ||
|
||
# Turns off the status bar | ||
set -g status on | ||
|
||
# Change the position of the status bar | ||
# set-option -g status-position bottom | ||
|
||
# TMUX and VIM Focus Events | ||
set-option -g focus-events on | ||
|
||
# Start window numbering at specific num | ||
set -g base-index 1 | ||
setw -g pane-base-index 1 | ||
|
||
# Renumber windows on window close | ||
set -g renumber-windows on | ||
|
||
# Avoid ESC delay | ||
set -s escape-time 0 | ||
|
||
# Fix titlebar | ||
set -g set-titles on | ||
set -g set-titles-string "#T" | ||
|
||
# VIM mode | ||
set -g mode-keys vi | ||
|
||
####################################################### | ||
# KEY BINDING | ||
####################################################### | ||
|
||
# Remap prefix from 'C-b' to 'C-a' | ||
unbind C-b | ||
set-option -g prefix C-a | ||
bind-key C-a send-prefix | ||
|
||
# C-b to server prefix in nested tmux stuff | ||
bind-key -n C-b send-prefix | ||
|
||
# New windows and panes are in current path | ||
bind c new-window -c "#{pane_current_path}" | ||
bind % split-window -h -c "#{pane_current_path}" | ||
bind \" split-window -v -c "#{pane_current_path}" | ||
|
||
# hjkl pane traversal | ||
bind h select-pane -L | ||
bind j select-pane -D | ||
bind k select-pane -U | ||
bind l select-pane -R | ||
|
||
# copy to X clipboard | ||
bind -T copy-mode-vi v send -X begin-selection | ||
bind -T copy-mode-vi y send-keys -X copy-pipe 'xclip -in -selection clipboard &> /dev/null' | ||
bind -T copy-mode-vi Enter send-keys -X cancel | ||
|
||
# shortcut for moving tmux buffer to clipboard | ||
# useful if you've selected with the mouse | ||
bind-key -nr C-y run "tmux show-buffer | pbcopy" # doesn't work on MacOS | ||
|
||
###################################################################### | ||
# END OF GENERAL CONFIGURATIONS | ||
###################################################################### | ||
|
||
###################### | ||
### DESIGN CHANGES ### | ||
###################### | ||
|
||
# TokyoNight colors for Tmux | ||
set -g mode-style "fg=#7aa2f7,bg=#3b4261" | ||
set -g message-style "fg=#7aa2f7,bg=#3b4261" | ||
set -g message-command-style "fg=#7aa2f7,bg=#3b4261" | ||
set -g pane-border-style "fg=#3b4261" | ||
set -g pane-active-border-style "fg=#7aa2f7" | ||
set -g status "on" | ||
set -g status-justify "left" | ||
set -g status-style "fg=#7aa2f7,bg=#1f2335" | ||
set -g status-left-length "100" | ||
set -g status-right-length "100" | ||
set -g status-left-style NONE | ||
set -g status-right-style NONE | ||
set -g status-left "#[fg=#1d202f,bg=#7aa2f7,bold] #S #[fg=#7aa2f7,bg=#1f2335,nobold,nounderscore,noitalics]" | ||
set -g status-right "#[fg=#1f2335,bg=#1f2335,nobold,nounderscore,noitalics]#[fg=#7aa2f7,bg=#1f2335] #{prefix_highlight} #[fg=#3b4261,bg=#1f2335,nobold,nounderscore,noitalics]#[fg=#7aa2f7,bg=#3b4261] %Y-%m-%d %I:%M %p #[fg=#7aa2f7,bg=#3b4261,nobold,nounderscore,noitalics]#[fg=#1d202f,bg=#7aa2f7,bold] #h " | ||
if-shell '[ "$(tmux show-option -gqv "clock-mode-style")" == "24" ]' { | ||
set -g status-right "#[fg=#1f2335,bg=#1f2335,nobold,nounderscore,noitalics]#[fg=#7aa2f7,bg=#1f2335] #{prefix_highlight} #[fg=#3b4261,bg=#1f2335,nobold,nounderscore,noitalics]#[fg=#7aa2f7,bg=#3b4261] %Y-%m-%d %H:%M #[fg=#7aa2f7,bg=#3b4261,nobold,nounderscore,noitalics]#[fg=#1d202f,bg=#7aa2f7,bold] #h " | ||
} | ||
setw -g window-status-activity-style "underscore,fg=#a9b1d6,bg=#1f2335" | ||
setw -g window-status-separator "" | ||
setw -g window-status-style "NONE,fg=#a9b1d6,bg=#1f2335" | ||
setw -g window-status-format "#[fg=#1f2335,bg=#1f2335,nobold,nounderscore,noitalics]#[default] #I #W #F #[fg=#1f2335,bg=#1f2335,nobold,nounderscore,noitalics]" | ||
setw -g window-status-current-format "#[fg=#1f2335,bg=#3b4261,nobold,nounderscore,noitalics]#[fg=#7aa2f7,bg=#3b4261,bold] #I #W #F #[fg=#3b4261,bg=#1f2335,nobold,nounderscore,noitalics]" | ||
# tmux-plugins/tmux-prefix-highlight support | ||
set -g @prefix_highlight_output_prefix "#[fg=#e0af68]#[bg=#1f2335]#[fg=#1f2335]#[bg=#e0af68]" | ||
set -g @prefix_highlight_output_suffix "" | ||
|
||
###################### | ||
### STATUS BAR ### | ||
###################### | ||
set -g status-interval 1 |