mirror of
https://github.com/WarrenHood/dotfiles.git
synced 2025-04-29 14:05:00 +01:00
Initial commit
This commit is contained in:
commit
ac6fbce068
4
makefile
Normal file
4
makefile
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
all:
|
||||||
|
stow --verbose --target=$$HOME --restow */
|
||||||
|
delete:
|
||||||
|
stow --verbose --target=$$HOME --delete */
|
2
neovim/.config/nvim/init.lua
Normal file
2
neovim/.config/nvim/init.lua
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
require("warrenhood.settings")
|
||||||
|
require("warrenhood.keybinds")
|
14
neovim/.config/nvim/lua/warrenhood/keybinds.lua
Normal file
14
neovim/.config/nvim/lua/warrenhood/keybinds.lua
Normal 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>')
|
||||||
|
|
||||||
|
|
19
neovim/.config/nvim/lua/warrenhood/settings.lua
Normal file
19
neovim/.config/nvim/lua/warrenhood/settings.lua
Normal 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
21
tmux/.tmux.conf
Normal 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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue