Initial commit

This commit is contained in:
Warren Hood 2022-11-07 20:12:08 +02:00
commit ac6fbce068
5 changed files with 60 additions and 0 deletions

4
makefile Normal file
View file

@ -0,0 +1,4 @@
all:
stow --verbose --target=$$HOME --restow */
delete:
stow --verbose --target=$$HOME --delete */

View file

@ -0,0 +1,2 @@
require("warrenhood.settings")
require("warrenhood.keybinds")

View file

@ -0,0 +1,14 @@
local function map(m, k, v)
vim.keymap.set(m, k, v, {silent = true})
end
-- Save and Quit
map('n', '<C-Q>', ':wq<CR>')
map('i', '<C-Q>', '<ESC>:wq<CR>')
-- Save
map('n', '<C-S>', ':w<CR>')
map('i', '<C-S>', '<ESC>:w<CR>')

View file

@ -0,0 +1,19 @@
local o = vim.o
local g = vim.g
-- General stuff
o.number = true
o.relativenumber = true
o.tabstop = 2
o.shiftwidth = 0
o.softtabstop = -1
-- Make clipboard work with neovim
o.clipboard = 'unnamedplus'
-- Case insensitive search
o.ignorecase = true
o.smartcase = true

21
tmux/.tmux.conf Normal file
View file

@ -0,0 +1,21 @@
set -g default-terminal "xterm-256color"
set -g mouse on
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# 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