aboutsummaryrefslogtreecommitdiff
path: root/files/.vimrc
diff options
context:
space:
mode:
authorAnton Bobov <anton@bobov.name>2022-05-13 16:19:13 +0500
committerAnton Bobov <anton@bobov.name>2022-05-13 16:19:13 +0500
commit919523413544c97603734d8d0f9476dd6ca4e2fc (patch)
tree3cbd0b56f7f52a01b294d12800fdf630edce2b05 /files/.vimrc
parent32e106906599e0cb12d3ee185d9d68302978dba5 (diff)
vim: add ALE plugin
Add Mine command
Diffstat (limited to 'files/.vimrc')
-rw-r--r--files/.vimrc13
1 files changed, 13 insertions, 0 deletions
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 {{{
@@ -652,6 +654,17 @@ if executable('ag')
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 {{{
let g:EditorConfig_exclude_patterns = ['fugitive://.*', 'scp://.*']