# HG changeset patch # User Steve Losh # Date 1516480718 18000 # Node ID 9469fc3d271f48c71af5814a4545a7fb90c70621 # Parent 3277da5053a66c1c6a785c5844c09a9c04513645# Parent 28205343c464b44fd36970d2588a74183ff73299 Merge. diff -r 3277da5053a6 -r 9469fc3d271f .hgignore --- a/.hgignore Sat Jan 20 15:38:14 2018 -0500 +++ b/.hgignore Sat Jan 20 15:38:38 2018 -0500 @@ -43,5 +43,4 @@ roswell/compile-parenscript weechat/slack.cache vim/bundle/_wat - -mutt/*.cert +======= diff -r 3277da5053a6 -r 9469fc3d271f fish/config.fish --- a/fish/config.fish Sat Jan 20 15:38:14 2018 -0500 +++ b/fish/config.fish Sat Jan 20 15:38:38 2018 -0500 @@ -70,6 +70,7 @@ prepend_to_path "/usr/bin" prepend_to_path "/usr/local/bin" prepend_to_path "/usr/local/sbin" +prepend_to_path "/usr/local/MacGPG2/bin" prepend_to_path "$HOME/lib/dotfiles/roswell" prepend_to_path "$HOME/lib/dotfiles/bin" prepend_to_path "$HOME/lib/hg/hg" @@ -83,6 +84,8 @@ set -g -x RUBYOPT rubygems set -g -x CLASSPATH "$CLASSPATH:/usr/local/Cellar/clojure-contrib/1.2.0/clojure-contrib.jar" +set -g -x PAGER 'less -X' + set -g -x NODE_PATH "/usr/local/lib/node_modules" set -g -x VIM_BINARY "/usr/local/bin/vim" @@ -91,7 +94,7 @@ set -g -x DRIP_SHUTDOWN 30 set -g -x MAVEN_OPTS "-Xmx2048m -Xss2M -XX:ReservedCodeCacheSize=128m" -set -g -x _JAVA_OPTIONS "-Djava.awt.headless=true" +# set -g -x _JAVA_OPTIONS "-Djava.awt.headless=true" set -g -x GPG_TTY (tty) @@ -149,9 +152,13 @@ set magenta (set_color magenta) set yellow (set_color yellow) set green (set_color green) +set cyan (set_color cyan) set gray (set_color -o black) -set hg_promptstring "< on $magenta$normal>< at $yellow$normal>$green$normal< -patches: >" 2>/dev/null +set hg_promptstring "\ +< on $magenta$normal>\ +< at $cyan$normal>\ +$green$normal\ +" 2>/dev/null function virtualenv_prompt if [ -n "$VIRTUAL_ENV" ] diff -r 3277da5053a6 -r 9469fc3d271f gitignore --- a/gitignore Sat Jan 20 15:38:14 2018 -0500 +++ b/gitignore Sat Jan 20 15:38:38 2018 -0500 @@ -6,6 +6,7 @@ *-SCRATCH.* .idea *.iml +*.orig .DS_Store .cache-main .cache-tests diff -r 3277da5053a6 -r 9469fc3d271f lispwords --- a/lispwords Sat Jan 20 15:38:14 2018 -0500 +++ b/lispwords Sat Jan 20 15:38:38 2018 -0500 @@ -76,7 +76,9 @@ ; cl-losh (1 recursively) (1 when-found if-found) -(1 when-let*) +(1 when-let* when-let) +(1 if-let* if-let) +(1 gathering-vector) (1 multiple-value-bind*) (1 do-repeat) diff -r 3277da5053a6 -r 9469fc3d271f psqlrc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/psqlrc Sat Jan 20 15:38:38 2018 -0500 @@ -0,0 +1,9 @@ +\set ON_ERROR_ROLLBACK interactive +\set COMP_KEYWORD_CASE upper +\set HISTFILE ~/.psql/history- :DBNAME + +\pset pager on +\pset null '∅' + +\set PROMPT1 '%[%033[1;34m%]%M:%> %n@%/%R%#%x%[%033[0m%] ' +\timing diff -r 3277da5053a6 -r 9469fc3d271f tmux/tmux.conf --- a/tmux/tmux.conf Sat Jan 20 15:38:14 2018 -0500 +++ b/tmux/tmux.conf Sat Jan 20 15:38:38 2018 -0500 @@ -18,8 +18,8 @@ # This is hilariously absurd. How many nerds use tmux on OS X every day and # it's still fundamentally broken? -set -g default-command "reattach-to-user-namespace -l zsh" -set -g default-command "reattach-to-user-namespace -l fish" +# set -g default-command "reattach-to-user-namespace -l zsh" +# set -g default-command "reattach-to-user-namespace -l fish" # Less stretching to get to the first item. set -g base-index 1 @@ -68,6 +68,7 @@ bind-key -r H swap-window -t -1 bind-key -r L swap-window -t +1 bind m command-prompt "move-window -t %%" +bind - choose-tree # 256 colors please set -g default-terminal "screen-256color" @@ -101,7 +102,7 @@ set -g visual-activity off # Autorename sanely. -setw -g automatic-rename on +# setw -g automatic-rename on # Better name management bind c new-window -a @@ -128,3 +129,4 @@ # Let neovim change the cursor shape set -g -a terminal-overrides ',*:Ss=\E[%p1%d q:Se=\E[2 q' + diff -r 3277da5053a6 -r 9469fc3d271f vim/vimrc --- a/vim/vimrc Sat Jan 20 15:38:14 2018 -0500 +++ b/vim/vimrc Sat Jan 20 15:38:38 2018 -0500 @@ -302,8 +302,8 @@ nnoremap n :setlocal number! " Sort lines -nnoremap s vip:!sort -f -vnoremap s :!sort -f +nnoremap s vip:sort +vnoremap s :sort " Tabs nnoremap ( :tabprev @@ -667,7 +667,7 @@ set hlsearch set gdefault -set scrolloff=3 +set scrolloff=5 set sidescroll=1 set sidescrolloff=10 @@ -697,16 +697,25 @@ " screen. Both will pulse the cursor line so you can see where the hell you " are. will also fold everything in the buffer and then unfold just " enough for you to see the destination line. -function! JumpToTag() - execute "normal! \mzzvzz15\" - execute "keepjumps normal! `z" +" +function! JumpTo(jumpcommand) + execute a:jumpcommand + call FocusLine() Pulse endfunction -function! JumpToTagInSplit() - execute "normal! \v\mzzMzvzz15\" - execute "keepjumps normal! `z" +function! JumpToInSplit(jumpcommand) + execute "normal! \v" + execute a:jumpcommand Pulse endfunction + +function! JumpToTag() + call JumpTo("normal! \") +endfunction +function! JumpToTagInSplit() + call JumpToInSplit("normal! \") +endfunction + nnoremap :silent! call JumpToTag() nnoremap :silent! call JumpToTagInSplit() @@ -796,13 +805,19 @@ " " 1. Close all folds. " 2. Open just the folds containing the current line. -" 3. Move the line to a little bit (15 lines) above the center of the screen. +" 3. Move the line to a bit (25 lines) down from the top of the screen. " 4. Pulse the cursor line. My eyes are bad. " " This mapping wipes out the z mark, which I never use. " " I use :sus for the rare times I want to actually background Vim. -nnoremap mzzMzvzz15`z:Pulse +function! FocusLine() + let oldscrolloff = &scrolloff + set scrolloff=0 + execute "keepjumps normal! mzzMzvzt25\`z:Pulse\" + let &scrolloff = oldscrolloff +endfunction +nnoremap :call FocusLine() function! MyFoldText() " {{{ let line = getline(v:foldstart) @@ -1824,10 +1839,17 @@ augroup ft_scala au! - au FileType scala setlocal foldmethod=marker - au FileType scala setlocal foldmarker={,} + au FileType scala setlocal foldmethod=syntax + au FileType scala setlocal foldlevel=1 au FileType scala setlocal cc=100 tw=100 au FileType scala setlocal expandtab + + au FileType scala nnoremap s :SortSimpleScalaImports + au FileType scala nnoremap :call LanguageClient_textDocument_definition() + au FileType scala nnoremap r :call LanguageClient_textDocument_references() + au FileType scala inoremap + + au FileType scala setlocal omnifunc=LanguageClient#complete augroup END " }}} @@ -2245,6 +2267,20 @@ let g:atia_attributes_complete = 0 " }}} +" Language Server Protocol {{{ + +let g:LanguageClient_serverCommands = { + \ 'scala': ['netcat', 'localhost', '62831'], + \ 'java': ['netcat', 'localhost', '62831'], + \ } +let g:LanguageClient_autoStart = 1 + +nnoremap gd :call LanguageClient_textDocument_definition() + +" nnoremap K :call LanguageClient_textDocument_hover() +" nnoremap :call LanguageClient_textDocument_rename() + +" }}} " MiniYank {{{ map p (miniyank-autoput) @@ -2257,6 +2293,8 @@ noremap :NERDTreeToggle inoremap :NERDTreeToggle +noremap :NERDTreeFind +inoremap :NERDTreeFind augroup ps_nerdtree au! @@ -2730,12 +2768,17 @@ au FileType lisp nnoremap f :call vlime#plugin#CompileFile(expand("%:p")) au FileType lisp nnoremap S :call vlime#plugin#SendToREPL(vlime#ui#CurTopExpr()) au FileType lisp nnoremap i :call vlime#plugin#Inspect(vlime#ui#CurExprOrAtom()) + au FileType lisp nnoremap I :call vlime#plugin#Inspect() au FileType lisp nnoremap M :call vlime#plugin#DocumentationSymbol(vlime#ui#CurAtom()) au FileType lisp setlocal indentexpr=vlime#plugin#CalcCurIndent() au FileType lisp nnoremap gi :call IndentToplevelLispForm() " Keys for the REPL au FileType vlime_repl nnoremap i :call vlime#ui#repl#InspectCurREPLPresentation() + au FileType vlime_repl nnoremap <2-LeftMouse> :call vlime#ui#repl#InspectCurREPLPresentation() + + " Keys for the Inspector + au FileType vlime_inspector nnoremap <2-LeftMouse> :call vlime#ui#inspector#InspectorSelect() " Universal keys, for all kinds of Vlime windows au FileType lisp,vlime_repl,vlime_inspector,vlime_sldb,vlime_notes,vlime_xref,vlime_preview call MapVlimeKeys() @@ -2918,9 +2961,9 @@ endif endfunction " }}} -nmap :ErrorsToggle +" nmap :ErrorsToggle nmap :QFixToggle -" nmap :LocationToggle +nmap :LocationToggle " }}} " Hg (Mercurial) {{{