2021-02-23 11:27:32 +00:00
|
|
|
" -----------------------------------------------------------------------------
|
|
|
|
" - ALE Plugin configuration -
|
|
|
|
" -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
" ALE Options
|
|
|
|
let g:ale_disable_lsp = 1 " Disable LSP, we have other stuff for that
|
|
|
|
let g:ale_fix_on_save = 1 " Default
|
|
|
|
|
|
|
|
" ALE Linters configuration
|
2021-03-26 20:51:15 +00:00
|
|
|
let g:ale_linters = {}
|
|
|
|
let g:ale_linters.python = ['flake8']
|
|
|
|
let g:ale_linters.kotlin = ['ktlint']
|
2021-04-08 06:37:51 +00:00
|
|
|
let g:ale_linters.clojure = []
|
2021-05-21 20:08:28 +00:00
|
|
|
let g:ale_linters.cs = ['OmniSharp']
|
2021-05-29 16:43:07 +00:00
|
|
|
let g:ale_linters.cpp = ['clangd']
|
2021-02-23 11:27:32 +00:00
|
|
|
|
|
|
|
" ALE Fixers configuration
|
|
|
|
let g:ale_fixers = {}
|
|
|
|
let g:ale_fixers['*'] = ['remove_trailing_lines', 'trim_whitespace']
|
|
|
|
let g:ale_fixers.python = ['autopep8', 'isort']
|
2021-03-26 20:51:15 +00:00
|
|
|
let g:ale_fixers.dart = ['dartfmt']
|
|
|
|
let g:ale_fixers.lua = ['luafmt']
|
2021-05-21 20:08:28 +00:00
|
|
|
let g:ale_fixers.go = ['gofmt']
|
2021-05-29 16:43:07 +00:00
|
|
|
let g:ale_fixers.cpp = ['clang-format']
|
2022-03-22 16:34:35 +00:00
|
|
|
let g:ale_fixers.cmake = ['cmakeformat']
|
2021-10-03 19:31:05 +00:00
|
|
|
let g:ale_fixers.java = ['google_java_format']
|
2021-11-30 15:49:42 +00:00
|
|
|
let g:ale_fixers.rust = ['rustfmt']
|
2021-02-23 11:27:32 +00:00
|
|
|
|
2021-10-04 11:46:14 +00:00
|
|
|
" Additional Java options
|
2021-10-04 15:46:40 +00:00
|
|
|
let g:ale_java_google_java_format_options = '--aosp'
|
2021-10-04 11:46:14 +00:00
|
|
|
|
2021-02-23 11:27:32 +00:00
|
|
|
" Warnings navigation
|
|
|
|
nmap <silent> [W <Plug>(ale_first)
|
|
|
|
nmap <silent> [w <Plug>(ale_previous)
|
|
|
|
nmap <silent> ]w <Plug>(ale_next)
|
|
|
|
nmap <silent> ]W <Plug>(ale_last)
|