diff --git a/.gitmodules b/.gitmodules index 1941b93..ddaa144 100644 --- a/.gitmodules +++ b/.gitmodules @@ -22,3 +22,6 @@ [submodule "bundle/tagbar"] path = bundle/tagbar url = https://github.com/preservim/tagbar +[submodule "bundle/ale"] + path = bundle/ale + url = https://github.com/dense-analysis/ale diff --git a/.vimrc b/.vimrc index 6550e91..9ec5209 100644 --- a/.vimrc +++ b/.vimrc @@ -83,3 +83,17 @@ execute pathogen#infect() " ---- plugin: onedark.vim ---- " colorscheme onedark + + +" +" ---- plugin: ale ---- +" +let g:ale_lint_on_text_changed = 0 +let g:ale_sign_error = 'E' +let g:ale_sign_warning = 'W' +let g:ale_echo_msg_format = '[%linter%]%code: %%s' + +let g:ale_linters = { 'cpp': ['cppcheck', 'cpplint'] } + +nmap (ale_previous_wrap) +nmap (ale_next_wrap) diff --git a/bundle/ale b/bundle/ale new file mode 160000 index 0000000..19437e2 --- /dev/null +++ b/bundle/ale @@ -0,0 +1 @@ +Subproject commit 19437e25d05950ab83dce285b4b8ec5166e06dba