From 919523413544c97603734d8d0f9476dd6ca4e2fc Mon Sep 17 00:00:00 2001 From: Anton Bobov Date: Fri, 13 May 2022 16:19:13 +0500 Subject: vim: add ALE plugin Add Mine command --- files/.vimrc | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'files/.vimrc') diff --git a/files/.vimrc b/files/.vimrc index f94ebcf..d271bf3 100644 --- a/files/.vimrc +++ b/files/.vimrc @@ -51,6 +51,7 @@ Plugin 'scrooloose/nerdcommenter.git' Plugin 'raimondi/delimitmate' " Syntax check and linting "Plugin 'https://github.com/scrooloose/syntastic.git' +Plugin 'dense-analysis/ale' " Text alignment commands Plugin 'godlygeek/tabular' " Pasting in vim @@ -449,6 +450,7 @@ if executable('xmlstarlet') endif command Jira %!pandoc --to=jira +command Mine %!to-html-fragment " }}} " Filetype {{{ " Vundle {{{ @@ -651,6 +653,17 @@ if executable('ag') cnoreabbrev AG Ack endif +" }}} +" ALE {{{ + + +au FileType java,python set omnifunc=ale#completion#OmniFunc + +let g:ale_fix_on_save = 1 +let g:ale_fixers = {} +let g:ale_fixers['*'] = ['remove_trailing_lines', 'trim_whitespace'] +let g:ale_fixers['json'] = ['jq'] + " }}} " Editorconfig {{{ -- cgit v1.2.3