diff --git a/config.yaml b/config.yaml new file mode 100644 index 0000000..e9c91a3 --- /dev/null +++ b/config.yaml @@ -0,0 +1,30 @@ +actions: + pre: + nvim-plug-install: test -e ~/.local/share/nvim/site/autoload/plug.vim || mkdir -p ~/.local/share/nvim/site/autoload/; curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim) + nvim-plug: nvim +PlugInstall +qall +config: + backup: true + banner: true + create: true + dotpath: dotfiles + ignoreempty: false + keepdot: false + link_by_default: false + longkey: false + showdiff: false + workdir: ~/.config/dotdrop +dotfiles: + f_tmux.conf: + dst: ~/.tmux.conf + src: tmux.conf + f_nvim: + dst: ~/.config/nvim/init.vim + src: nvim/init.vim + actions: + - nvim-plug-install + - nvim-plug +profiles: + dennis-ThinkPad: + dotfiles: + - f_tmux.conf + - f_nvim diff --git a/init.vim b/dotfiles/nvim/init.vim similarity index 100% rename from init.vim rename to dotfiles/nvim/init.vim diff --git a/dotfiles/tmux.conf b/dotfiles/tmux.conf new file mode 100644 index 0000000..a219470 --- /dev/null +++ b/dotfiles/tmux.conf @@ -0,0 +1,32 @@ +# remap prefix to Control + a +set -g prefix C-a +unbind C-b +bind C-a send-prefix + +set-option -g status-position top + +# force a reload of the config file +unbind r +bind r source-file ~/.tmux.conf + +# quick pane cycling +unbind ^A +bind ^A select-pane -t :.+ + +# prevent issues with (n)vi(m) +set -s escape-time 0 + +# don't rename windows automatically +set-option -g allow-rename off + +# split panes using | and - +bind | split-window -h +bind - split-window -v +unbind '"' +unbind % + +# switch panes using Alt-arrow without prefix +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