this repo has no description
1
fork

Configure Feed

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

Projectionist definitions for projects

+102 -102
+1 -21
nvim/after/ftplugin/elixir.vim
··· 17 17 SwapList deps require import use alias 18 18 SwapList errors :ok :error 19 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 20 augroup elixir_projectionist 38 21 au! 39 - autocmd User ProjectionistDetect 40 - \ call projections#append( 41 - \ projections#find_root(g:projectionist_file, {path -> filereadable(path . '/mix.exs')}), 42 - \ s:projections) 22 + autocmd User ProjectionistDetect call projections#elixir#detect() 43 23 augroup END
+5
nvim/after/ftplugin/javascript.vim
··· 1 1 setlocal tabstop=2 2 + 3 + augroup node_projectionist 4 + au! 5 + autocmd User ProjectionistDetect call projections#node#detect() 6 + augroup END
+5 -1
nvim/after/ftplugin/json.vim
··· 1 1 setlocal formatprg=jq\ . 2 - setlocal tabstop=2 2 + 3 + augroup node_projectionist 4 + au! 5 + autocmd User ProjectionistDetect call projections#node#detect() 6 + augroup END
-20
nvim/after/syntax/elixir.vim
··· 1 - hi link elixirDefine Keyword 2 - hi link elixirPrivateDefine Keyword 3 - hi link elixirModuleDefine Keyword 4 - hi link elixirProtocolDefine Keyword 5 - hi link elixirImplDefine Keyword 6 - hi link elixirRecordDefine Keyword 7 - hi link elixirPrivateRecordDefine Keyword 8 - hi link elixirMacroDefine Keyword 9 - hi link elixirPrivateMacroDefine Keyword 10 - hi link elixirDelegateDefine Keyword 11 - hi link elixirOverridableDefine Keyword 12 - hi link elixirExceptionDefine Keyword 13 - hi link elixirCallbackDefine Keyword 14 - hi link elixirStructDefine Keyword 15 - hi link elixirExUnitMacro Keyword 16 - 17 - hi link elixirAtom String 18 - hi link elixirBoolean Define 19 - 20 - hi link elixirFunctionDeclaration Define
-1
nvim/after/syntax/html.vim
··· 1 - hi htmlBold cterm=bold gui=bold
+3 -10
nvim/autoload/plugins.vim
··· 64 64 " }}} 65 65 " Task running & quickfix {{{ 66 66 call minpac#add('kassio/neoterm') 67 + call minpac#add('hauleth/asyncdo.vim') 67 68 call minpac#add('romainl/vim-qf') 68 69 call minpac#add('romainl/vim-qlist') 70 + call minpac#add('w0rp/ale') 69 71 " }}} 70 72 " Utils {{{ 71 73 call minpac#add('tpope/vim-repeat') 72 74 call minpac#add('tpope/vim-unimpaired') 73 75 call minpac#add('wellle/targets.vim') 76 + call minpac#add('kopischke/vim-fetch') 74 77 " }}} 75 78 endfunc 76 - 77 - " Helpers 78 - 79 - func! s:install_skim(...) abort 80 - if has(':AsyncRun') 81 - noautocmd AsyncRun! ./install --bin 82 - else 83 - ! ./install --bin 84 - endif 85 - endfunc
+23
nvim/autoload/projections/elixir.vim
··· 1 + let s:projections = { 2 + \ 'apps/*/mix.exs': { 'type': 'app' }, 3 + \ 'lib/*.ex': { 4 + \ 'type': 'lib', 5 + \ 'alternate': 'test/{}_test.exs', 6 + \ 'template': ['defmodule {camelcase|capitalize|dot} do', 'end'], 7 + \ }, 8 + \ 'test/*_test.exs': { 9 + \ 'type': 'test', 10 + \ 'alternate': 'lib/{}.ex', 11 + \ 'template': ['defmodule {camelcase|capitalize|dot}Test do', ' use ExUnit.Case', 'end'], 12 + \ }, 13 + \ 'priv/**/migrations/*.exs': { 'type': 'migration' }, 14 + \ 'mix.exs': { 'type': 'mix' }, 15 + \ 'config/*.exs': { 'type': 'config' }, 16 + \ } 17 + 18 + func! projections#elixir#detect() abort 19 + let l:root = projections#find_root( 20 + \ g:projectionist_file, 21 + \ {path -> filereadable(path . '/mix.exs')}) 22 + call projections#append(l:root, s:projections) 23 + endfunc
+52
nvim/autoload/projections/node.vim
··· 1 + let s:yarn_projections = { 2 + \ '*.js': { 'make': 'yarn' }, 3 + \ 'package.json': { 'type': 'package' } 4 + \ } 5 + let s:nuxt_projections = { 6 + \ '*.vue': { 7 + \ 'make': 'yarn', 8 + \ 'template': [ 9 + \ '<template>', 10 + \ '</template>', 11 + \ '', 12 + \ '<script>', 13 + \ 'export default {open}', 14 + \ '{close}', 15 + \ '</script>', 16 + \ '', 17 + \ '<style>', 18 + \ '</style>' 19 + \ ] 20 + \ }, 21 + \ 'components/*.vue': { 'type': 'component' }, 22 + \ 'layouts/*.vue': { 'type': 'layout' }, 23 + \ 'pages/*.vue': { 'type': 'page' }, 24 + \ 'plugins/*.js': { 'type': 'plugin' }, 25 + \ 'middlewares/*.js': { 'type': 'middleware' }, 26 + \ 'store/*.js': { 27 + \ 'type': 'store', 28 + \ 'template': [ 29 + \ 'export const state = () => ({open}', 30 + \ '{close})', 31 + \ '', 32 + \ 'export const mutations = {open}', 33 + \ '{close}', 34 + \ '', 35 + \ 'export const actions = {open}', 36 + \ '{close}' 37 + \ ] 38 + \ }, 39 + \ 'nuxt.config.js': { 'type': 'config' }, 40 + \ } 41 + 42 + func! s:check_for(file, projections) abort 43 + let l:root = projections#find_root( 44 + \ g:projectionist_file, 45 + \ {path -> filereadable(path . a:file)}) 46 + call projections#append(l:root, a:projections) 47 + endfunc 48 + 49 + func! projections#node#detect() abort 50 + call s:check_for('/nuxt.config.js', s:nuxt_projections) 51 + call s:check_for('/package.json', s:yarn_projections) 52 + endfunc
+5 -8
nvim/autoload/statusline.vim
··· 2 2 3 3 " displays a flag if there are unseen quickfix errors 4 4 function! statusline#quickfix() abort 5 - return get(g:, 'quickfix_pending') ? '⎈' : '' 5 + let l:ret = '' 6 + let l:ret .= get(g:, 'quickfix_pending') ? '♻️' : '' 7 + let l:ret .= exists('g:asyncdo_job') ? '⚙' : '' 8 + 9 + return l:ret 6 10 endfunction 7 11 8 12 function! statusline#modified() abort 9 13 return &modified ? ' +' : '' 10 - endfunction 11 - 12 - function! statusline#repo() abort 13 - " return gina#component#repo#branch() 14 - " \ . ' ' 15 - " \ . gina#component#traffic#preset('fancy') 16 - return '' 17 14 endfunction 18 15 19 16 function! statusline#quickfix_name() abort
-1
nvim/ftdetect/curly.vim
··· 1 - au BufRead,BufNewFile *.curly setlocal ft=html syn=html
+2
nvim/ftdetect/custom.vim
··· 1 + au BufRead,BufNewFile *.vue setlocal ft=javascript.html syn=html 2 + au BufRead,BufNewFile *.ket setlocal ft=ketos.scheme syn=scheme
-1
nvim/ftdetect/ketos.vim
··· 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
+6 -5
nvim/init.vim
··· 65 65 let &statusline .= ' ' 66 66 let &statusline .= '» %f%{statusline#modified()} «%<' 67 67 let &statusline .= '%=' 68 - let &statusline .= '%{statusline#repo()}' 69 - let &statusline .= ' ' 70 68 let &statusline .= '%{statusline#quickfix()}%4c:%l' 71 69 let &statusline .= ' ' 72 70 " }}} ··· 92 90 nnoremap Uc :<C-u>Gcommit<CR> 93 91 nnoremap Uu :<C-u>Gpull<CR> 94 92 nmap UU Uu 93 + 94 + cabbrev G Git 95 + cabbrev G! Git! 95 96 " }}} 96 97 " Asynchronous commands {{{ 97 - command! -nargs=* -complete=file Make exe 'AsyncDo '.&makeprg.' '.<q-args> 98 - command! -nargs=* -complete=file Grep exe 'AsyncDo '.&grepprg.' '.<q-args> 98 + command! -bang -nargs=* -complete=file Make exe 'AsyncDo<bang> '.&makeprg.' <args>' 99 + command! -nargs=* -complete=file Grep exe 'AsyncDo<bang> '.&grepprg.' <args>' 99 100 " }}} 100 101 " Expand abbreviations on enter {{{ 101 102 inoremap <CR> <C-]><CR> ··· 170 171 " Auto align windows {{{ 171 172 augroup align_windows 172 173 au! 173 - autocmd VimResized * wincmd = 174 + au VimResized * wincmd = 174 175 augroup END 175 176 " }}} 176 177 " Startify {{{
-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>)