aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2018-10-01 11:31:22 +0200
committerKarel Kočí <karel.koci@nic.cz>2018-10-01 11:31:22 +0200
commit6d6c04a71eff7bb7808dfd71d6d8d4b8b547dccf (patch)
tree9cc1cd56d3d92997c6959c404bd20e2811b6e7a7 /vim
parent8d1fe86ad4f4aa7b6169844c407ebf44ea367e68 (diff)
downloadmyconfigs-6d6c04a71eff7bb7808dfd71d6d8d4b8b547dccf.tar.gz
myconfigs-6d6c04a71eff7bb7808dfd71d6d8d4b8b547dccf.tar.bz2
myconfigs-6d6c04a71eff7bb7808dfd71d6d8d4b8b547dccf.zip
vim: configure completion using ale
Diffstat (limited to 'vim')
-rw-r--r--vim/ftplugin/c.vim2
-rw-r--r--vim/ftplugin/cpp.vim3
-rw-r--r--vim/ftplugin/python.vim3
3 files changed, 8 insertions, 0 deletions
diff --git a/vim/ftplugin/c.vim b/vim/ftplugin/c.vim
new file mode 100644
index 0000000..1f57627
--- /dev/null
+++ b/vim/ftplugin/c.vim
@@ -0,0 +1,2 @@
+let b:ale_linters = ['cppcheck', 'gcc', 'cquery']
+let b:ale_fixers = ['remove_trailing_lines', 'trim_whitespace']
diff --git a/vim/ftplugin/cpp.vim b/vim/ftplugin/cpp.vim
new file mode 100644
index 0000000..8b20787
--- /dev/null
+++ b/vim/ftplugin/cpp.vim
@@ -0,0 +1,3 @@
+" This is for C but vim defines *.h as cpp type so here we have it
+let b:ale_linters = ['cppcheck', 'gcc', 'cquery']
+let b:ale_fixers = ['remove_trailing_lines', 'trim_whitespace']
diff --git a/vim/ftplugin/python.vim b/vim/ftplugin/python.vim
index 03b655f..42d5eff 100644
--- a/vim/ftplugin/python.vim
+++ b/vim/ftplugin/python.vim
@@ -1,2 +1,5 @@
setlocal colorcolumn=79
setlocal textwidth=79
+
+let b:ale_linters = ['flake8', 'pylint', 'pyls']
+let b:ale_fixers = ['autopep8', 'isort', 'black', 'add_blank_lines_for_python_control_statements', 'remove_trailing_lines', 'trim_whitespace']