Browse Source

adding helix and tmux

Mike Ramthun 3 weeks ago
commit
66aa25272e
2 changed files with 74 additions and 0 deletions
  1. 14 0
      helix/config.toml
  2. 60 0
      tmux/tmux.conf

+ 14 - 0
helix/config.toml

@@ -0,0 +1,14 @@
+theme = "tokyonight"
+
+[editor]
+true-color = true # force for wsl
+line-number = "relative"
+popup-border = "all" # popup menu all none
+cursorline = true
+end-of-line-diagnostics = "hint"
+
+[editor.cursor-shape]
+insert = "bar"
+
+[editor.inline-diagnostics]
+cursor-line = "warning" # show warnings and errors on the cursorline inline

+ 60 - 0
tmux/tmux.conf

@@ -0,0 +1,60 @@
+# change the prefix from 'C-b' to 'C-a'
+# (remap capslock to CTRL for easy access)
+# unbind C-b
+# set -g prefix C-a
+# bind C-a send-prefix
+
+# start with window 1 (instead of 0)
+set -g base-index 1
+
+# start with pane 1
+set -g pane-base-index 1
+
+# split panes using | and -, make sure they open in the same path
+bind | split-window -h -c "#{pane_current_path}"
+bind - split-window -v -c "#{pane_current_path}"
+
+unbind '"'
+unbind %
+
+# open new windows in the current path
+bind c new-window -c "#{pane_current_path}"
+
+# reload config file
+bind r source-file ~/.tmux.conf
+
+unbind p
+bind p previous-window
+
+# shorten command delay
+set -sg escape-time 1
+
+# don't rename windows automatically
+set -g allow-rename off
+
+# mouse control (clickable windows, panes, resizable panes)
+set -g mouse on
+
+# Use Alt-arrow keys without prefix key to switch panes
+bind -n M-Left select-pane -L
+bind -n M-Right select-pane -R
+bind -n M-Up select-pane -U
+bind -n M-Down select-pane -D
+
+# enable vi mode keys
+set-window-option -g mode-keys vi
+
+# set default terminal mode to 256 colors
+set -g default-terminal "xterm-256color"
+set -ga terminal-overrides ",xterm-256color:Tc"
+
+# allow focus events to get through to applications running in tmux
+set -g focus-events on
+
+# loud or quiet?
+set -g visual-activity on
+set -g visual-bell on
+set -g visual-silence off
+setw -g monitor-activity off
+set -g bell-action none
+