this repo has no description
1
fork

Configure Feed

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

Cleanup Vim configuration

+94 -24
+25
nvim/after/ftplugin/elixir.vim
··· 16 16 SwapList defs def defp 17 17 SwapList deps require import use alias 18 18 SwapList errors :ok :error 19 + 20 + let s:projections = { 21 + \ 'apps/*/mix.exs': { 'type': 'app' }, 22 + \ 'lib/*.ex': { 23 + \ 'type': 'lib', 24 + \ 'alternate': 'test/{}_test.exs', 25 + \ 'template': ['defmodule {camelcase|capitalize|dot} do', 'end'], 26 + \ }, 27 + \ 'test/*_test.exs': { 28 + \ 'type': 'test', 29 + \ 'alternate': 'lib/{}.ex', 30 + \ 'template': ['defmodule {camelcase|capitalize|dot}Test do', ' use ExUnit.Case', 'end'], 31 + \ }, 32 + \ 'priv/**/migrations/*.exs': { 'type': 'migration' }, 33 + \ 'mix.exs': { 'type': 'mix' }, 34 + \ 'config/*.exs': { 'type': 'config' }, 35 + \ } 36 + 37 + augroup elixir_projectionist 38 + au! 39 + autocmd User ProjectionistDetect 40 + \ call projections#append( 41 + \ projections#find_root(g:projectionist_file, {path -> filereadable(path . '/mix.exs')}), 42 + \ s:projections) 43 + augroup END
-2
nvim/after/ftplugin/rust.vim
··· 1 - compiler cargo 2 - 3 1 setlocal iskeyword+=! 4 2 setlocal formatprg=rustfmt\ --write-mode=display 5 3 let g:rustfmt_autosave = 1
+11 -13
nvim/autoload/plugins.vim
··· 25 25 call minpac#add('mhinz/vim-startify') 26 26 " }}} 27 27 " Languages {{{ 28 - call minpac#add('rust-lang/rust.vim') 28 + call minpac#add('cespare/vim-toml') 29 29 call minpac#add('dag/vim-fish') 30 - call minpac#add('cespare/vim-toml') 31 30 call minpac#add('elixir-lang/vim-elixir') 32 - call minpac#add('hashivim/vim-hashicorp-tools') 33 - call minpac#add('posva/vim-vue') 31 + call minpac#add('pangloss/vim-javascript') 32 + call minpac#add('rust-lang/rust.vim') 34 33 " }}} 35 34 " Git {{{ 36 - " call minpac#add('lambdalisue/gina.vim') 37 - call minpac#add('tpope/vim-fugitive') 38 35 call minpac#add('idanarye/vim-merginal') 36 + call minpac#add('tpope/vim-fugitive') 39 37 " }}} 40 38 " Project navigation {{{ 39 + call minpac#add('direnv/direnv.vim') 41 40 call minpac#add('junegunn/fzf') 41 + call minpac#add('junegunn/fzf.vim') 42 42 call minpac#add('tpope/vim-projectionist') 43 - call minpac#add('direnv/direnv.vim') 44 43 " }}} 45 44 " File manager {{{ 46 45 call minpac#add('justinmk/vim-dirvish') ··· 53 52 call minpac#add('slashmili/alchemist.vim') 54 53 " }}} 55 54 " Code manipulation {{{ 56 - call minpac#add('mjbrownie/swapit') 55 + call minpac#add('AndrewRadev/splitjoin.vim') 56 + call minpac#add('hauleth/sad.vim') 57 57 call minpac#add('jiangmiao/auto-pairs') 58 + call minpac#add('mjbrownie/swapit') 58 59 call minpac#add('tommcdo/vim-exchange') 59 60 call minpac#add('tommcdo/vim-lion') 60 61 call minpac#add('tpope/vim-commentary') 61 62 call minpac#add('tpope/vim-endwise') 62 63 call minpac#add('tpope/vim-surround') 63 - call minpac#add('AndrewRadev/splitjoin.vim') 64 - call minpac#add('hauleth/sad.vim') 65 64 " }}} 66 65 " Task running & quickfix {{{ 67 - call minpac#add('skywind3000/asyncrun.vim') 66 + call minpac#add('kassio/neoterm') 68 67 call minpac#add('romainl/vim-qf') 69 68 call minpac#add('romainl/vim-qlist') 70 69 " }}} 71 70 " Utils {{{ 72 - call minpac#add('wellle/targets.vim') 73 71 call minpac#add('tpope/vim-repeat') 74 72 call minpac#add('tpope/vim-unimpaired') 75 - call minpac#add('wakatime/vim-wakatime') 73 + call minpac#add('wellle/targets.vim') 76 74 " }}} 77 75 endfunc 78 76
+18
nvim/autoload/projections.vim
··· 1 + func! projections#find_root(path, func) abort 2 + let root = simplify(fnamemodify(a:path, ':p')) 3 + let previous = '' 4 + while root !=# previous && root !=# '/' 5 + if a:func(root) 6 + return root 7 + end 8 + let previous = root 9 + let root = fnamemodify(root, ':h') 10 + endwhile 11 + return '' 12 + endfunc 13 + 14 + func! projections#append(path, projections) abort 15 + if a:path !=# '' 16 + call projectionist#append(a:path, a:projections) 17 + endif 18 + endfunc
+1 -1
nvim/ftdetect/curly.vim
··· 1 - au BufRead,BufNewFile *.curly set ft=html syn=html 1 + au BufRead,BufNewFile *.curly setlocal ft=html syn=html
-1
nvim/ftdetect/javascript.vim
··· 1 - au BufRead,BufNewFile *.es6 set ft=javascript syn=javascript
-1
nvim/ftdetect/jbuilder.vim
··· 1 - au BufRead,BufNewFile *.jbuilder set ft=ruby syn=ruby
+1 -1
nvim/ftdetect/ketos.vim
··· 1 - au BufRead,BufNewFile *.ket set ft=ketos.scheme syn=scheme 1 + au BufRead,BufNewFile *.ket setlocal ft=ketos.scheme syn=scheme
+1
nvim/ftdetect/vue.vim
··· 1 + au BufRead,BufNewFile *.vue setlocal ft=html syn=html
+4 -5
nvim/init.vim
··· 29 29 colorscheme blame 30 30 " }}} 31 31 " Ignore all automatic files and folders {{{ 32 - set wildignore=*.o,*~,*.pyc,.git,*/tmp/* 32 + set wildignore=*.o,*~,*/.git,*/tmp/*,*/node_modules/*,*/_build/*,*/deps/*,*/target/* 33 33 " }}} 34 34 " Display tabs and trailing spaces visually {{{ 35 35 set list listchars=tab:→\ ,trail:·,nbsp:␣ ··· 79 79 set undofile 80 80 " }}} 81 81 " Custom configurations {{{ 82 - let g:vue_disable_pre_processors = 1 83 82 " Fuzzy file search {{{ 84 - nnoremap <Space><Space> :<C-u>FZF<CR> 83 + nnoremap <Space><Space> :<C-u>Files<CR> 85 84 " }}} 86 85 " Git shortcuts {{{ 87 86 nnoremap U <nop> ··· 95 94 nmap UU Uu 96 95 " }}} 97 96 " Asynchronous commands {{{ 98 - command! -bang -nargs=* -complete=file Make AsyncRun -program=make @ <args> 99 - command! -bang -nargs=* -complete=file Grep AsyncRun -program=grep @ <args> 97 + command! -nargs=* -complete=file Make exe 'AsyncDo '.&makeprg.' '.<q-args> 98 + command! -nargs=* -complete=file Grep exe 'AsyncDo '.&grepprg.' '.<q-args> 100 99 " }}} 101 100 " Expand abbreviations on enter {{{ 102 101 inoremap <CR> <C-]><CR>
+33
nvim/plugin/asyncdo.vim
··· 1 + func! s:populate(file, cmd) abort 2 + unlet! t:job 3 + try 4 + exe 'cgetfile '.a:file 5 + finally 6 + call setqflist([], 'a', {'title': a:cmd}) 7 + endtry 8 + endfunc 9 + 10 + func! AsyncDo(...) abort 11 + if exists('t:job') 12 + echoerr 'There is currently running job, just wait' 13 + return 14 + endif 15 + 16 + call setqflist([], 'r') 17 + let tmp = tempname() 18 + let cmd = join(a:000) 19 + 20 + let g:qf_quickfix_titles = [] 21 + if has('nvim') 22 + let t:job = jobstart([&sh, &shcf, printf(cmd.&srr, tmp)], { 23 + \ 'on_exit': {id, data, event -> s:populate(tmp, cmd)} 24 + \ }) 25 + else 26 + let t:job = job_start([&sh, &shcf, printf(cmd.&srr, tmp)], { 27 + \ 'in_io': 'null','out_io': 'null','err_io': 'null', 28 + \ 'exit_cb': {job, result -> s:populate(tmp, cmd)} 29 + \ }) 30 + endif 31 + endfunc 32 + 33 + com! -nargs=+ AsyncDo call AsyncDo(<f-args>)