First commit - WIP
This commit is contained in:
commit
d8ad9bcee4
8 changed files with 1321 additions and 0 deletions
9
.gitmodules
vendored
Normal file
9
.gitmodules
vendored
Normal file
|
@ -0,0 +1,9 @@
|
|||
[submodule "iterm"]
|
||||
path = iterm
|
||||
url = https://github.com/dracula/iterm.git
|
||||
[submodule "iterm-dracula"]
|
||||
path = iterm-dracula
|
||||
url = https://github.com/dracula/iterm.git
|
||||
[submodule "tpm"]
|
||||
path = tpm
|
||||
url = https://github.com/tmux-plugins/tpm.git
|
1093
com.googlecode.iterm2.plist
Normal file
1093
com.googlecode.iterm2.plist
Normal file
File diff suppressed because it is too large
Load diff
31
init.sh
Normal file
31
init.sh
Normal file
|
@ -0,0 +1,31 @@
|
|||
#!/bin/bash
|
||||
echo "-= Creating necessary directories =-"
|
||||
mkdir -p ~/.config ~/.config/nvim
|
||||
|
||||
echo "-= Installing System Dependencies =-"
|
||||
brew install zsh tmux neovim/neovim/neovim python3 ag
|
||||
brew tap caskroom/cask
|
||||
brew cask install iterm2
|
||||
|
||||
echo "-= Installing Fonts =-"
|
||||
brew tap caskroom/fonts
|
||||
brew cask install font-fira-code
|
||||
|
||||
echo "-= Assigning Zsh as Default Shell =-"
|
||||
chsh -s $(which zsh)
|
||||
|
||||
echo "-= Upgrading NeoVim with Python =-"
|
||||
pip3 install neovim
|
||||
|
||||
echo "-= Setting Zsh as default shell =-"
|
||||
chsh -s /usr/local/bin/zsh
|
||||
|
||||
echo "-= Removing any existing configs =-"
|
||||
rm ~/.zshrc ~/.tmux.conf ~/.config/nvim/init.vim 2> /dev/null
|
||||
|
||||
echo "-= Symlinking new configs =-"
|
||||
ln -s ~/dotfiles/zshrc ~/.zshrc
|
||||
ln -s ~/dotfiles/tmux.conf ~/.tmux.conf
|
||||
ln -s ~/dotfiles/vimrc ~/.config/nvim/init.vim
|
||||
|
||||
echo "-= Log out and Log Back In to see changes =-"
|
1
iterm-dracula
Submodule
1
iterm-dracula
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit ae1db14ee36f452c6d03611dc18635d4862ad155
|
29
tmux.conf
Normal file
29
tmux.conf
Normal file
|
@ -0,0 +1,29 @@
|
|||
# Configure Tabs
|
||||
set -g base-index 1
|
||||
set -g pane-base-index 1
|
||||
set -g renumber-windows on
|
||||
bind-key -n C-t new-window
|
||||
bind-key -n C-T new-window -c "#{pane_current_path}"
|
||||
bind-key -n C-w kill-pane
|
||||
|
||||
# Panes
|
||||
bind \ split-window -h
|
||||
bind | split-window -h -c '#{pane_current_path}'
|
||||
bind - split-window
|
||||
bind _ split-window -c '#{pane_current_path}'
|
||||
|
||||
# Theme
|
||||
set -g @themepack 'block/yellow'
|
||||
|
||||
# Fix System Clipboard
|
||||
set -g default-shell $SHELL
|
||||
set -g default-command 'reattach-to-user-namespace -l ${SHELL}'
|
||||
|
||||
# Plugins
|
||||
set -g @plugin 'tmux-plugins/tpm'
|
||||
set -g @plugin 'tmux-plugins/tmux-sensible'
|
||||
set -g @plugin 'jimeh/tmux-themepack'
|
||||
set -g @plugin 'christoomey/vim-tmux-navigator'
|
||||
|
||||
# Initialize Tmux Plugin Manager (TPM)
|
||||
run '~/dotfiles/tpm/tpm'
|
1
tpm
Submodule
1
tpm
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 0ea31ae2d624413719e97dc7e138ed6cf749c7d2
|
144
vimrc
Normal file
144
vimrc
Normal file
|
@ -0,0 +1,144 @@
|
|||
set encoding=utf8
|
||||
|
||||
" Stop word wrapping
|
||||
set nowrap
|
||||
" Except... on Makrdown. That's good stuff.
|
||||
autocmd FileType markdown setlocal wrap
|
||||
|
||||
" Adjust system undo levels
|
||||
set undolevels=100
|
||||
|
||||
" Use system clipboard
|
||||
set clipboard=unnamed
|
||||
|
||||
" Set tab width and convert tabs to spaces
|
||||
set tabstop=2
|
||||
set softtabstop=2
|
||||
set shiftwidth=2
|
||||
set expandtab
|
||||
|
||||
" Don't let Vim hide characters or make loud dings
|
||||
set conceallevel=1
|
||||
set noerrorbells
|
||||
|
||||
" Number gutter with relative line numbers
|
||||
" Relative lines encourage smarter movements in vim
|
||||
set number
|
||||
set relativenumber
|
||||
|
||||
" Use search highlighting
|
||||
set hlsearch
|
||||
|
||||
" Space above/beside cursor from screen edges
|
||||
set scrolloff=1
|
||||
set sidescrolloff=5
|
||||
|
||||
" Disable mouse support
|
||||
set mouse=r
|
||||
let $NVIM_TUI_ENABLE_CURSOR_SHAPE=1
|
||||
|
||||
" Plugins with vim-plug
|
||||
if empty(glob('~/.vim/autoload/plug.vim'))
|
||||
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
|
||||
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
||||
autocmd VimEnter * PlugInstall | source $MYVIMRC
|
||||
endif
|
||||
|
||||
call plug#begin('~/.vim/plugged')
|
||||
|
||||
" Required
|
||||
Plug 'Shougo/unite.vim'
|
||||
|
||||
" Visuals
|
||||
Plug 'dracula/vim'
|
||||
Plug 'vim-airline/vim-airline'
|
||||
Plug 'vim-airline/vim-airline-themes'
|
||||
Plug 'Yggdroot/indentLine'
|
||||
Plug 'airblade/vim-gitgutter'
|
||||
|
||||
" Navigating Project Files
|
||||
Plug 'ctrlpvim/ctrlp.vim', { 'on': 'CtrlP' }
|
||||
Plug 'mhinz/vim-grepper'
|
||||
Plug 'Shougo/vimfiler.vim', { 'on': 'VimFiler' }
|
||||
|
||||
" Languages
|
||||
Plug 'pangloss/vim-javascript'
|
||||
Plug 'helino/vim-json'
|
||||
|
||||
" Code Editing
|
||||
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
|
||||
Plug 'w0rp/ale'
|
||||
|
||||
" Movement
|
||||
Plug 'justinmk/vim-sneak'
|
||||
|
||||
call plug#end()
|
||||
|
||||
|
||||
" Configuration
|
||||
|
||||
" Theme: Dracula
|
||||
color dracula
|
||||
|
||||
" vim-airline
|
||||
let g:airline#extensions#tabline#enabled=1
|
||||
let g:airline_powerline_fonts=1
|
||||
set laststatus=2
|
||||
|
||||
" indentLine
|
||||
let g:indentLine_enabled = 1
|
||||
let g:indentLine_char = "⟩"
|
||||
|
||||
" Leader
|
||||
let mapleader="\<SPACE>"
|
||||
|
||||
" Return to last opened file
|
||||
nmap <Leader><Leader> <c-^>
|
||||
|
||||
" adding empty lines
|
||||
nnoremap <Leader>[ :<c-u>put! =repeat(nr2char(10), v:count1)<cr>'[
|
||||
nnoremap <Leader>] :<c-u>put =repeat(nr2char(10), v:count1)<cr>
|
||||
|
||||
" moving current line
|
||||
nnoremap <Leader>m[ :<c-u>execute 'move -1-'. v:count1<cr>
|
||||
nnoremap <Leader>m] :<c-u>execute 'move +'. v:count1<cr>
|
||||
|
||||
" arrow keys resize pane
|
||||
nnoremap <Left> :vertical resize -1<CR>
|
||||
nnoremap <Right> :vertical resize +1<CR>
|
||||
nnoremap <Up> :resize -1<CR>
|
||||
nnoremap <Down> :resize +1<CR>
|
||||
" disable arrow keys in insert mode
|
||||
imap <up> <nop>
|
||||
imap <down> <nop>
|
||||
imap <left> <nop>
|
||||
imap <right> <nop>
|
||||
|
||||
" Grepper
|
||||
nnoremap <Leader>fp :Grepper<Space>-query<Space>
|
||||
nnoremap <Leader>fb :Grepper<Space>-buffers<Space>-query<Space>-<Space>
|
||||
|
||||
" File Buffer
|
||||
nnoremap <Tab> :bnext!<CR>
|
||||
nnoremap <S-Tab> :bprev!<CR>
|
||||
|
||||
" Fuzzy Finder
|
||||
nnoremap <Leader>p :CtrlP<CR>
|
||||
nnoremap <Leader>t :CtrlP<CR>
|
||||
|
||||
" vimfiler
|
||||
map ` :VimFiler -explorer<CR>
|
||||
map ~ :VimFilerCurrentDir -explorer -find<CR>
|
||||
|
||||
" deoplete
|
||||
let g:deoplete#enable_at_startup = 1
|
||||
inoremap <expr><tab> pumvisible() ? "\<c-n>" : "\<tab>"
|
||||
|
||||
" sneak
|
||||
let g:sneak#s_next = 1
|
||||
nmap f <Plug>Sneak_f
|
||||
nmap F <Plug>Sneak_F
|
||||
xmap f <Plug>Sneak_f
|
||||
xmap F <Plug>Sneak_F
|
||||
omap f <Plug>Sneak_f
|
||||
omap F <Plug>Sneak_F
|
13
zshrc
Normal file
13
zshrc
Normal file
|
@ -0,0 +1,13 @@
|
|||
autoload colors zsh/terminfo
|
||||
colors
|
||||
|
||||
precmd() { print "" }
|
||||
|
||||
PS1="⟩"
|
||||
RPS1="%{$fg[magenta]%}%20<...<%~%<<%{$reset_color%}"
|
||||
|
||||
# Auto start tmux
|
||||
if [ "$TMUX" = "" ]; then tmux; fi
|
||||
|
||||
# Auto CD
|
||||
setopt auto_cd
|
Loading…
Add table
Reference in a new issue