Add brewfile
This commit is contained in:
parent
c9227f44b0
commit
a0e88b9a52
2 changed files with 146 additions and 28 deletions
|
|
@ -58,6 +58,7 @@ Plug 'darfink/vim-plist'
|
||||||
Plug 'vim-ruby/vim-ruby'
|
Plug 'vim-ruby/vim-ruby'
|
||||||
Plug 'kchmck/vim-coffee-script'
|
Plug 'kchmck/vim-coffee-script'
|
||||||
Plug 'jceb/vim-orgmode'
|
Plug 'jceb/vim-orgmode'
|
||||||
|
Plug 'bfontaine/Brewfile.vim'
|
||||||
" For vim-orgmode
|
" For vim-orgmode
|
||||||
Plug 'tpope/vim-speeddating'
|
Plug 'tpope/vim-speeddating'
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
@ -110,7 +111,7 @@ command! -bang -nargs=* Rg call fzf#vim#grep('rg --column --line-number --no-hea
|
||||||
noremap <Leader>/ :Rg<CR>
|
noremap <Leader>/ :Rg<CR>
|
||||||
"noremap <Space>/ :Rg<CR>
|
"noremap <Space>/ :Rg<CR>
|
||||||
|
|
||||||
function s:get_buffer_git_root(...)
|
function! s:get_buffer_git_root(...)
|
||||||
let root = fugitive#repo().tree(expand('%:p:h'))
|
let root = fugitive#repo().tree(expand('%:p:h'))
|
||||||
if empty(root)
|
if empty(root)
|
||||||
return s:warn('Not in git repo')
|
return s:warn('Not in git repo')
|
||||||
|
|
@ -155,12 +156,35 @@ noremap <Leader>fed :e ~/.config/nvim/init.vim<CR>
|
||||||
|
|
||||||
" TODO quickfix for ripgrep results
|
" TODO quickfix for ripgrep results
|
||||||
" TODO quickfix for autolint and rake stuff
|
" TODO quickfix for autolint and rake stuff
|
||||||
|
"autocmd QuickFixCmdPost * botright cwindow 6
|
||||||
|
" quickfix things like '-'
|
||||||
|
"nmap <Leader>cwc :cclose<CR>
|
||||||
|
"nmap <Leader>cwo :botright copen 5<CR><C-w>p
|
||||||
|
"nmap <Leader>cn :cnext<CR>
|
||||||
|
"nmap <Leader>cp :cprevious<CR>
|
||||||
|
"nmap - :cnext<CR>
|
||||||
|
"nmap _ :cprev<CR>
|
||||||
|
"nmap <C--> :colder<CR>
|
||||||
|
"nmap <C-_> :cnewer<CR>
|
||||||
|
" neomake uses the location window rather than quickfix window
|
||||||
|
noremap - :lnext<CR>
|
||||||
|
noremap _ :lprev<CR>
|
||||||
|
" See ToggleLocationList below
|
||||||
|
|
||||||
" Only lint when leaving insert or changing text in command mode
|
" Only lint when leaving insert or changing text in command mode
|
||||||
call neomake#configure#automake({
|
call neomake#configure#automake({
|
||||||
\ 'InsertLeave': {'delay': 0},
|
\ 'InsertLeave': {'delay': 0},
|
||||||
\ 'TextChanged': {},
|
\ 'TextChanged': {},
|
||||||
\ }, 500)
|
\ }, 500)
|
||||||
|
let g:neomake_ruby_rubocop_maker = {
|
||||||
|
\ 'args': ['exec', 'rubocop', '--format', 'emacs', '--force-exclusion', '--display-cop-names'],
|
||||||
|
\ 'exe': 'bundle',
|
||||||
|
\ 'errorformat': '%f:%l:%c: %t: %m,%E%f:%l: %m',
|
||||||
|
\ 'postprocess': function('neomake#makers#ft#ruby#RubocopEntryProcess'),
|
||||||
|
\ 'output_stream': 'stdout',
|
||||||
|
\ }
|
||||||
|
let g:neomake_ruby_rubocop_rails_maker = {
|
||||||
|
\ }
|
||||||
|
|
||||||
let g:deoplete#enable_at_startup = 1
|
let g:deoplete#enable_at_startup = 1
|
||||||
|
|
||||||
|
|
@ -186,33 +210,64 @@ nmap <C-p> :Denite neoyank<CR>
|
||||||
"vmap <Leader>y :'<,'>! cat \| tee ~/.local/share/nvim/yank.txt<CR>
|
"vmap <Leader>y :'<,'>! cat \| tee ~/.local/share/nvim/yank.txt<CR>
|
||||||
"nmap <Leader>p o<Esc>:.!cat ~/.local/share/nvim/yank.txt<CR>
|
"nmap <Leader>p o<Esc>:.!cat ~/.local/share/nvim/yank.txt<CR>
|
||||||
|
|
||||||
" ^n Show number and fold columns in windows {{{2
|
|
||||||
if has("eval")
|
function! GetBufferList()
|
||||||
function! <SID>FoldNumbers()
|
redir =>buflist
|
||||||
" If we're in a wide window, enable line numbers.
|
silent! ls!
|
||||||
"if winwidth(0) >= 76 " 72 + 4, or should I use tw?
|
redir END
|
||||||
" Add folds, or cycle through number schemes
|
return buflist
|
||||||
if &foldlevel < 99 && &foldenable && &foldcolumn == 0
|
endfunction
|
||||||
setlocal foldcolumn=1
|
|
||||||
elseif (&foldlevel == 99 || ! &foldenable) && &foldcolumn != 0
|
function! ToggleLocationList()
|
||||||
setlocal foldcolumn=0
|
let buflist = GetBufferList()
|
||||||
elseif ! &rnu && ! &nu
|
" Close if it's open
|
||||||
setlocal relativenumber
|
for bufnum in map(filter(split(buflist, '\n'), 'v:val =~ "Location List"'), 'str2nr(matchstr(v:val, "\\d\\+"))')
|
||||||
elseif &rnu
|
if bufwinnr(bufnum) != -1
|
||||||
setlocal number
|
exec('lclose')
|
||||||
setlocal norelativenumber
|
return
|
||||||
elseif &nu
|
endif
|
||||||
setlocal nonumber
|
endfor
|
||||||
endif
|
" Don't open if it's empty
|
||||||
"else
|
if len(getloclist(0)) == 0
|
||||||
" setlocal norelativenumber
|
echohl ErrorMsg
|
||||||
" setlocal nonumber
|
echo "Location List is Empty."
|
||||||
" setlocal foldcolumn=0
|
return
|
||||||
"endif
|
endif
|
||||||
endfun
|
" Open it
|
||||||
"autocmd WinEnter,BufWinEnter,BufNew * :call <SID>FoldNumbers()
|
let winnr = winnr()
|
||||||
noremap <silent> <C-n> :call <SID>FoldNumbers()<CR>
|
exec('lopen')
|
||||||
endif
|
" Go back to window
|
||||||
|
if winnr() != winnr
|
||||||
|
wincmd p
|
||||||
|
endif
|
||||||
|
endfunction
|
||||||
|
noremap <Leader>- :call ToggleLocationList()<CR>
|
||||||
|
|
||||||
|
" ^n Show number and fold columns in windows
|
||||||
|
function! <SID>FoldNumbers()
|
||||||
|
" If we're in a wide window, enable line numbers.
|
||||||
|
"if winwidth(0) >= 76 " 72 + 4, or should I use tw?
|
||||||
|
" Add folds, or cycle through number schemes
|
||||||
|
if &foldlevel < 99 && &foldenable && &foldcolumn == 0
|
||||||
|
setlocal foldcolumn=1
|
||||||
|
elseif (&foldlevel == 99 || ! &foldenable) && &foldcolumn != 0
|
||||||
|
setlocal foldcolumn=0
|
||||||
|
elseif ! &rnu && ! &nu
|
||||||
|
setlocal relativenumber
|
||||||
|
elseif &rnu
|
||||||
|
setlocal number
|
||||||
|
setlocal norelativenumber
|
||||||
|
elseif &nu
|
||||||
|
setlocal nonumber
|
||||||
|
endif
|
||||||
|
"else
|
||||||
|
" setlocal norelativenumber
|
||||||
|
" setlocal nonumber
|
||||||
|
" setlocal foldcolumn=0
|
||||||
|
"endif
|
||||||
|
endfun
|
||||||
|
"autocmd WinEnter,BufWinEnter,BufNew * :call <SID>FoldNumbers()
|
||||||
|
noremap <silent> <C-n> :call <SID>FoldNumbers()<CR>
|
||||||
|
|
||||||
" Case insensitivity for searching
|
" Case insensitivity for searching
|
||||||
set ignorecase
|
set ignorecase
|
||||||
|
|
|
||||||
63
Brewfile
Normal file
63
Brewfile
Normal file
|
|
@ -0,0 +1,63 @@
|
||||||
|
# Work fun
|
||||||
|
tap "d12frosted/emacs-plus" ; brew "emacs-plus"
|
||||||
|
cask "blue-jeans-launcher"
|
||||||
|
cask "docker" # docker docker
|
||||||
|
cask "hipchat" # Work chat
|
||||||
|
cask "slack" # Work/fun chat
|
||||||
|
cask "tunnelblick" # Work vpn
|
||||||
|
cask "virtualbox" # vms
|
||||||
|
cask "vagrant" # all the vms
|
||||||
|
brew "git" # Newer than what brew installs
|
||||||
|
brew "gnupg" # Crypto, not currency
|
||||||
|
brew "pinentry-mac" # gpg card pin entry
|
||||||
|
brew "htop" # L33t
|
||||||
|
brew "hub" # git, for github
|
||||||
|
brew "ncdu" # Find big files
|
||||||
|
brew "neovim" # Edit stuff
|
||||||
|
brew "ripgrep" # Faster grep/ack/ag
|
||||||
|
brew "socat" # Better netcat
|
||||||
|
brew "tmux" # Terminal thingy
|
||||||
|
brew "reattach-to-user-namespace" # For tmux
|
||||||
|
brew "unrar" # Rar happens
|
||||||
|
brew "unzip" # Zip happens
|
||||||
|
brew "nmap" # Port scanner
|
||||||
|
brew "p0f" # Passive scanner
|
||||||
|
cask "minikube" # k8s in a box
|
||||||
|
|
||||||
|
# Mac fun
|
||||||
|
cask "aerial" # Screensaver
|
||||||
|
cask "alfred" # Launcher
|
||||||
|
tap "crisidev/chunkwm" ; brew "chunkwm" # Window manager
|
||||||
|
tap "koekeishiya/formulae" ; brew "khd" # Keyboard shortcuts
|
||||||
|
cask "cathode" # Silly terminal
|
||||||
|
cask "ubersicht" # UI bar
|
||||||
|
cask "font-hack" # I don't think I use this any more
|
||||||
|
cask "font-liberation-mono-for-powerline" # For neovim
|
||||||
|
|
||||||
|
# Game fun
|
||||||
|
cask "angband" # Morgoth
|
||||||
|
cask "brogue" # Less goth
|
||||||
|
cask "steam" # Meta game
|
||||||
|
|
||||||
|
# Life fun
|
||||||
|
cask "1password" # Family accounts
|
||||||
|
cask "adobe-creative-cloud" # Family pictures
|
||||||
|
brew "ddrescue" # Photo recover
|
||||||
|
brew "exiftool" # Photo munge
|
||||||
|
brew "imagemagick" # manipulation
|
||||||
|
cask "arq" # Family backups
|
||||||
|
cask "discord" # Friend chat
|
||||||
|
cask "dropbox" # File sync
|
||||||
|
cask "onedrive" # File sync
|
||||||
|
cask "little-snitch" # Personal egress filtering
|
||||||
|
cask "vlc" # Music videos
|
||||||
|
brew "youtube-dl" # Music videos
|
||||||
|
cask "zerotier-one" # Personal network
|
||||||
|
# cask microsoft-office # Not 365 apparently
|
||||||
|
|
||||||
|
# Browsers
|
||||||
|
cask "brave" # For bt
|
||||||
|
cask "firefox" # Personal browsing
|
||||||
|
cask "firefoxnightly" # Work browsing
|
||||||
|
cask "multifirefox" # Profile manager
|
||||||
|
cask "google-chrome" # Flash/music
|
||||||
Loading…
Add table
Add a link
Reference in a new issue