nvimrc/lua/zak/ale.lua

23 lines
631 B
Lua

-- ALE setup
vim.cmd [[
let g:ale_sign_error = '✘'
let g:ale_sign_warning = '⚠'
highlight ALEErrorSign ctermbg =NONE ctermfg=red
highlight ALEWarningSign ctermbg =NONE ctermfg=yellow
let g:ale_linters_explicit = 1
let g:ale_lint_on_text_changed = 'never'
let g:ale_lint_on_enter = 0
let g:ale_lint_on_save = 1
let g:ale_fix_on_save = 1
let g:ale_linters = {
\ 'ocaml': ['merlin'],
\}
let g:ale_fixers = {
\ 'ocaml': ['ocamlformat'],
\ '*': ['remove_trailing_lines', 'trim_whitespace'],
\}
]]