diff options
author | Yaroslav <contact@yaroslavps.com> | 2020-03-31 17:52:49 +0300 |
---|---|---|
committer | Yaroslav <contact@yaroslavps.com> | 2020-03-31 17:52:49 +0300 |
commit | 7217c7749e5403c9c7856c1d12c7986eb9c3b460 (patch) | |
tree | d60a112d9119a51af1cf5f590c5efad81751edf6 /dotfiles/.vim/autoload/neomake/makers/ft/elixir.vim | |
parent | 9a3aa7b20a67c1b7991da1da9508ad5f78f76352 (diff) | |
download | vimrice-7217c7749e5403c9c7856c1d12c7986eb9c3b460.tar.gz vimrice-7217c7749e5403c9c7856c1d12c7986eb9c3b460.zip |
Goodbye vim, been using neovim for ages now; home directory cleanup
Diffstat (limited to 'dotfiles/.vim/autoload/neomake/makers/ft/elixir.vim')
-rw-r--r-- | dotfiles/.vim/autoload/neomake/makers/ft/elixir.vim | 72 |
1 files changed, 0 insertions, 72 deletions
diff --git a/dotfiles/.vim/autoload/neomake/makers/ft/elixir.vim b/dotfiles/.vim/autoload/neomake/makers/ft/elixir.vim deleted file mode 100644 index 4de652e..0000000 --- a/dotfiles/.vim/autoload/neomake/makers/ft/elixir.vim +++ /dev/null @@ -1,72 +0,0 @@ -" vim: ts=4 sw=4 et - -" Credo error types. -" F -> Refactoring opportunities -" W -> Warnings -" C -> Convention violation -" D -> Software design suggestions -" R -> Readability suggestions -" Map structure {CredoError: NeomakeType, ...} -let s:neomake_elixir_credo_config_typemap = { - \ 'F': 'W', - \ 'C': 'W', - \ 'D': 'I', - \ 'R': 'I'} - -function! neomake#makers#ft#elixir#PostprocessEnforceMaxBufferLine(entry) abort - let buffer_lines = str2nr(line('$')) - if (buffer_lines < a:entry.lnum) - let a:entry.lnum = buffer_lines - endif -endfunction - -function! neomake#makers#ft#elixir#PostprocessCredo(entry) abort - let type = toupper(a:entry.type) - let type_map = extend(s:neomake_elixir_credo_config_typemap, - \ get(g:, 'neomake_elixir_credo_config_typemap', {})) - if has_key(type_map, type) - let a:entry.type = type_map[type] - endif -endfunction - -function! neomake#makers#ft#elixir#EnabledMakers() abort - return ['mix'] -endfunction - -function! neomake#makers#ft#elixir#elixir() abort - return { - \ 'errorformat': - \ '%E** %s %f:%l: %m,'. - \ '%W%f:%l: warning: %m' - \ } -endfunction - -function! neomake#makers#ft#elixir#credo() abort - return { - \ 'exe': 'mix', - \ 'args': ['credo', 'list', '--format=oneline'], - \ 'postprocess': function('neomake#makers#ft#elixir#PostprocessCredo'), - \ 'errorformat': - \'[%t] %. %f:%l:%c %m,' . - \'[%t] %. %f:%l %m' - \ } -endfunction - -function! neomake#makers#ft#elixir#mix() abort - return { - \ 'exe' : 'mix', - \ 'args': ['compile', '--warnings-as-errors'], - \ 'postprocess': function('neomake#makers#ft#elixir#PostprocessEnforceMaxBufferLine'), - \ 'errorformat': - \ '** %s %f:%l: %m,'. - \ '%Ewarning: %m,%C %f:%l,%Z' - \ } -endfunction - -function! neomake#makers#ft#elixir#dogma() abort - return { - \ 'exe': 'mix', - \ 'args': ['dogma', '--format=flycheck'], - \ 'errorformat': '%E%f:%l:%c: %.: %m' - \ } -endfunction |