From 9b0440f95813cdf8aab43801eb3f79e2732f0b77 Mon Sep 17 00:00:00 2001 From: falsycat Date: Wed, 15 Sep 2021 15:33:05 +0900 Subject: [PATCH] Adds new plugin, ALE. --- .gitmodules | 3 +++ .vimrc | 14 ++++++++++++++ bundle/ale | 1 + 3 files changed, 18 insertions(+) create mode 160000 bundle/ale 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