this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add snippets

+112 -74
+1
git/config
··· 19 19 fixup = commit --fixup=HEAD 20 20 ag = grep 21 21 rg = grep 22 + ver = tag --sort=version:refname 22 23 23 24 [mergetool] 24 25 keepBackup = false
+3
git/ignore
··· 34 34 .codekit-config.json 35 35 config.codekit 36 36 # }}} 37 + # Configs {{{ 38 + .envrc 39 + # }}} 37 40 # Editors {{{ 38 41 # VIM 39 42 Session.vim
+2 -6
nvim/after/ftplugin/elixir.vim
··· 2 2 setlocal tabstop=2 3 3 setlocal iskeyword+=!,? 4 4 5 + let &l:define = 'def\(macro\)\?p\?' 6 + 5 7 command! -buffer ModuleName echo ft#elixir#module_name() 6 8 command! -buffer Function echo ft#elixir#full_ident() 7 9 command! -buffer XrefCallers call asyncdo#run(1, 'mix', 'xref', 'callers', ft#elixir#full_ident()) ··· 15 17 inoremap <buffer> ,, <Space>=> 16 18 17 19 inoreabbrev <buffer> pkey add :id, :binary_id, primary_key: true 18 - 19 - ClearSwapList 20 - 21 - SwapList defs def defp 22 - SwapList deps require import use alias 23 - SwapList errors :ok :error 24 20 25 21 augroup elixir_projectionist 26 22 au!
+2 -4
nvim/after/ftplugin/javascript.vim
··· 1 1 setlocal tabstop=2 2 2 setlocal makeprg=yarn 3 3 4 + setlocal includeexpr=ft#javascript#includeexpr(v:fname) 5 + 4 6 augroup node_projectionist 5 7 au! 6 8 autocmd User ProjectionistDetect call projections#node#detect() 7 9 augroup END 8 - 9 - ClearSwapList 10 - 11 - SwapList variable let const
-6
nvim/after/ftplugin/ruby.vim
··· 1 1 setlocal formatprg=rubocop-clean 2 2 setlocal tabstop=2 3 - 4 - ClearSwapList 5 - 6 - SwapList visibility public protected private 7 - SwapList if if unless 8 - SwapList while while until
-14
nvim/after/ftplugin/rust.vim
··· 10 10 nnoremap <buffer> K <Plug>(rust-doc) 11 11 nnoremap <buffer> <C-]> <Plug>(rust-def) 12 12 13 - ClearSwapList 14 - 15 - SwapList float f32 f64 16 - SwapList integers i8 i16 i32 i64 17 - SwapList unsigned u8 u16 u32 u64 18 - SwapList ref_mut & &mut 19 - SwapList string str String 20 - SwapList result Ok Err 21 - SwapList option Some None 22 - SwapList assert assert assert_eq 23 - SwapList print print println 24 - SwapList write write writeln 25 - SwapList module mod use 26 - 27 13 augroup rust_projectionist 28 14 au! 29 15 autocmd User ProjectionistDetect call projections#rust#detect()
+1 -1
nvim/after/ftplugin/vim.vim
··· 1 - packadd! vim-complimentary 1 + packadd vim-complimentary 2 2 3 3 setlocal omnifunc=complimentary#CompleteCpty
+48 -6
nvim/autoload/completion.vim
··· 1 - func! s:setup_omnifunc() abort 2 - if len(lsp#get_whitelisted_servers()) > 0 1 + let s:lsp_servers = [ 2 + \ { 3 + \ 'name': 'elixir-ls', 4 + \ 'cmd': {server_info-> 5 + \ [&shell, 6 + \ &shellcmdflag, 7 + \ 'env ERL_LIBS='.<SID>append_env($ERL_LIBS, '~/Workspace/JakeBecker/elixir-ls/lsp').' mix elixir_ls.language_server']}, 8 + \ 'whitelist': ['elixir'], 9 + \ }, 10 + \ { 11 + \ 'name': 'rls', 12 + \ 'cmd': {server_info->['rustup', 'run', 'nightly', 'rls']}, 13 + \ 'whitelist': ['rust'], 14 + \ }, 15 + \ { 16 + \ 'name': 'vue-language-server', 17 + \ 'cmd': {server_info->['vls']}, 18 + \ 'whitelist': ['vue'], 19 + \ }, 20 + \ ] 21 + 22 + func! s:append_env(env, path) abort 23 + return (a:env is# '' ? '' : a:env.':') . expand(a:path) 24 + endfunc 25 + 26 + func! s:has_server() abort 27 + return len(lsp#get_whitelisted_servers()) > 0 28 + endfunc 29 + 30 + func! s:setup_mappings() abort 31 + if !s:has_server() | return | endif 32 + 33 + if empty(&omnifunc) 3 34 setlocal omnifunc=lsp#complete 4 35 endif 36 + 37 + if !maparg('<C-]>') isnot# '' 38 + nnoremap <buffer> <C-]> :<C-u>LspDefinition<CR> 39 + endif 40 + 41 + if !maparg('K') isnot# '' 42 + nnoremap <buffer> K :<C-u>LspHover<CR> 43 + endif 5 44 endfunc 6 45 7 46 func! completion#lsp() abort 8 - let g:lsp_async_completion = 1 9 - 10 - for l:server in get(g:, 'lsp_servers', []) 47 + for l:server in s:lsp_servers 11 48 call lsp#register_server(l:server) 12 49 endfor 13 50 51 + let g:lsp_log_verbose = 1 52 + let g:lsp_log_file=$HOME.'/.local/share/nvim/lsp.log' 53 + 54 + call s:setup_mappings() 55 + 14 56 augroup lsp_completion 15 57 au! 16 - au FileType * call s:setup_omnifunc() 58 + au FileType * call s:setup_mappings() 17 59 augroup END 18 60 endfunc
+4
nvim/autoload/ft/javascript.vim
··· 1 + func! ft#javascript#includeexpr(path) abort 2 + echom a:path 3 + return substitute(a:path, '^\~/', '', '') 4 + endfunc
+12 -6
nvim/autoload/plugins.vim
··· 47 47 call minpac#add('prabirshrestha/vim-lsp', {'type': 'opt'}) 48 48 call minpac#add('Shougo/echodoc.vim', {'type': 'opt'}) 49 49 call minpac#add('fcpg/vim-complimentary', {'type': 'opt'}) 50 + call minpac#add('hauleth/usnip.vim') 50 51 " }}} 51 52 " Code manipulation {{{ 52 53 call minpac#add('AndrewRadev/splitjoin.vim', {'type': 'opt'}) 53 54 call minpac#add('hauleth/sad.vim', {'type': 'opt'}) 54 55 call minpac#add('jiangmiao/auto-pairs', {'type': 'opt'}) 55 - call minpac#add('mjbrownie/swapit') " Used in some ftplugins 56 + call minpac#add('AndrewRadev/switch.vim', {'type': 'opt'}) 56 57 call minpac#add('tommcdo/vim-exchange', {'type': 'opt'}) 57 58 call minpac#add('tommcdo/vim-lion', {'type': 'opt'}) 58 59 call minpac#add('tpope/vim-commentary', {'type': 'opt'}) 59 - call minpac#add('tpope/vim-endwise', {'type': 'opt'}) 60 + call minpac#add('tpope/vim-endwise') " Requires access to au FileType 60 61 call minpac#add('tpope/vim-surround', {'type': 'opt'}) 62 + " }}} 63 + " Movements {{{ 64 + call minpac#add('wellle/targets.vim', {'type': 'opt'}) 65 + call minpac#add('yangmillstheory/vim-snipe', {'type': 'opt'}) 61 66 " }}} 62 67 " Task running & quickfix {{{ 63 68 call minpac#add('hauleth/asyncdo.vim', {'type': 'opt'}) 64 69 call minpac#add('romainl/vim-qf', {'type': 'opt'}) 65 70 call minpac#add('romainl/vim-qlist', {'type': 'opt'}) 71 + call minpac#add('Olical/vim-enmasse', {'type': 'opt'}) 72 + " }}} 73 + " Splits management {{{ 74 + call minpac#add('t9md/vim-choosewin', {'type': 'opt'}) 66 75 " }}} 67 76 " Utils {{{ 68 - call minpac#add('Olical/vim-enmasse', {'type': 'opt'}) 69 77 call minpac#add('tpope/vim-repeat') " autoload-only plugin 70 78 call minpac#add('tpope/vim-unimpaired', {'type': 'opt'}) 71 - call minpac#add('wellle/targets.vim', {'type': 'opt'}) 72 - call minpac#add('t9md/vim-choosewin', {'type': 'opt'}) 79 + call minpac#add('tpope/vim-rsi', {'type': 'opt'}) 73 80 call minpac#add('machakann/vim-highlightedyank', {'type': 'opt'}) 74 - call minpac#add('yangmillstheory/vim-snipe', {'type': 'opt'}) 75 81 call minpac#add('direnv/direnv.vim') " Requires access to VimEnter 76 82 " }}} 77 83 endfunc
+18 -30
nvim/init.vim
··· 31 31 colorscheme blame 32 32 " }}} 33 33 " Ignore all automatic files and folders {{{ 34 - set wildignore+=*.o,*~,*/.git,*/tmp,*/node_modules,*/_build,*/deps,*/target 34 + set wildignore+=*.o,*~,**/.git/**,**/tmp/**,**/node_modules/**,**/_build/**,**/deps/**,**/target/**,**/uploads/** 35 35 " }}} 36 36 " Display tabs and trailing spaces visually {{{ 37 37 set fillchars=vert:┃,fold:· ··· 45 45 set nohidden autowriteall 46 46 " }}} 47 47 " Keep cursor in the middle {{{ 48 - set scrolloff=9999 48 + set scrolloff=100 49 49 " }}} 50 50 " Enable mouse suport {{{ 51 51 set mouse=a ··· 78 78 " Custom configurations {{{ 79 79 " Fuzzy file search {{{ 80 80 nnoremap <Space><Space> :<C-u>FZF<CR> 81 + nnoremap <Space>f :<C-u>find **/ 81 82 " }}} 82 83 " Git shortcuts {{{ 83 84 nnoremap U <nop> ··· 96 97 " }}} 97 98 " Asynchronous commands {{{ 98 99 command! -bang -nargs=* Make call asyncdo#run(<bang>0, &makeprg, <f-args>) 99 - command! -bang -nargs=* Grep call asyncdo#run(<bang>0, &grepprg, <f-args>) 100 + command! -bang -nargs=* Grep silent! grep<bang> <args> 100 101 command! -bang -nargs=* LMake call asyncdo#lrun(<bang>0, &makeprg, <f-args>) 101 - command! -bang -nargs=* LGrep call asyncdo#lrun(<bang>0, &grepprg, <f-args>) 102 + command! -bang -nargs=* LGrep silent! lgrep<bang> <args> 102 103 " }}} 103 104 " Expand abbreviations on enter {{{ 104 105 inoremap <CR> <C-]><CR> ··· 127 128 nnoremap <expr> <CR> foldlevel('.') ? 'za' : "\<CR>" 128 129 " }}} 129 130 " Scratchpad {{{ 130 - command! Scratchify setlocal nobuflisted buftype=nofile bufhidden=delete 131 - command! Scratch enew | Scratchify 132 - command! SScratch new | Scratchify 133 - command! VScratch vnew | Scratchify 134 - command! TScratch tabnew | Scratchify 131 + command! Scratchify setlocal nobuflisted noswapfile buftype=nofile bufhidden=delete 132 + command! Scratch enew |Scratchify 133 + command! SScratch new +Scratchify 134 + command! VScratch vnew +Scratchify 135 + command! TScratch tabnew +Scratchify 135 136 " }}} 136 137 " Format {{{ 137 138 nnoremap g= gg=Gg`` ··· 164 165 nnoremap <C-q>t :<C-u>tabnew +term<CR> 165 166 166 167 tnoremap <C-q> <C-\><C-n> 168 + inoremap <C-q> <ESC> 167 169 168 170 if executable('nvr') 169 171 let $EDITOR = 'nvr -cc split -c "set bufhidden=delete" --remote-wait' ··· 205 207 " }}} 206 208 " Completions {{{ 207 209 set complete=.,w,b,t,u 208 - set completeopt=menu,longest,noselect 210 + set completeopt=menuone,noselect,noinsert 211 + 212 + let g:lsp_async_completion = 1 209 213 let g:echodoc_enable_at_startup = 1 210 - let g:cpty_awk_cmd = 'mawk -f' 211 214 212 - let g:lsp_servers = [ 213 - \ { 214 - \ 'name': 'elixir-ls', 215 - \ 'cmd': {server_info->[&shell, &shellcmdflag, 'env ERL_LIBS=/Users/hauleth/Workspace/JakeBecker/elixir-ls/lsp mix elixir_ls.language_server']}, 216 - \ 'whitelist': ['elixir'], 217 - \ }, 218 - \ { 219 - \ 'name': 'rls', 220 - \ 'cmd': {server_info->['rustup', 'run', 'nightly', 'rls']}, 221 - \ 'whitelist': ['rust'], 222 - \ }, 223 - \ { 224 - \ 'name': 'vue-language-server', 225 - \ 'cmd': {server_info->['vls']}, 226 - \ 'whitelist': ['vue'], 227 - \ } 228 - \ ] 215 + let g:usnip_dirs = ['~/.config/nvim/snips'] 229 216 230 - augroup lsp_servers 217 + augroup lsp_servers_setup 231 218 au! 232 219 au User lsp_setup call completion#lsp() 233 220 augroup END 234 221 " }}} 235 222 236 - nnoremap zS :echo 'hi<' . synIDattr(synID(line('.'),col('.'),1),'name') . '> trans<' 223 + let g:vue_disable_pre_processors=1 224 + nnoremap zS :<C-u>echo 'hi<' . synIDattr(synID(line('.'),col('.'),1),'name') . '> trans<' 237 225 \ . synIDattr(synID(line('.'),col('.'),0),'name') . '> lo<' 238 226 \ . synIDattr(synIDtrans(synID(line('.'),col('.'),1)),'name') . '>'<CR>
+2 -1
nvim/plugin/pack_delayed.vim
··· 4 4 packadd echodoc.vim 5 5 packadd sad.vim 6 6 packadd splitjoin.vim 7 + packadd switch.vim 7 8 packadd targets.vim 8 9 packadd vim-choosewin 9 10 packadd vim-commentary 10 - packadd vim-endwise 11 11 packadd vim-enmasse 12 12 packadd vim-eunuch 13 13 packadd vim-exchange ··· 16 16 packadd vim-lsp 17 17 packadd vim-qf 18 18 packadd vim-qlist 19 + packadd vim-rsi 19 20 packadd vim-snipe 20 21 packadd vim-surround 21 22 packadd vim-unimpaired
+19
nvim/snips/mit-license.snip
··· 1 + Copyright (c) {{+~strftime("%Y")+}} {{+Hauleth+}} 2 + 3 + Permission is hereby granted, free of charge, to any person obtaining a copy 4 + of this software and associated documentation files (the "Software"), to deal 5 + in the Software without restriction, including without limitation the rights 6 + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 + copies of the Software, and to permit persons to whom the Software is 8 + furnished to do so, subject to the following conditions: 9 + 10 + The above copyright notice and this permission notice shall be included in all 11 + copies or substantial portions of the Software. 12 + 13 + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 19 + SOFTWARE.