/
lint.vim
34 lines (27 loc) · 1012 Bytes
/
lint.vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
scriptencoding utf-8
let g:ale_sign_error = '✘'
let g:ale_sign_warning = '➤'
let g:ale_sign_info = '➟'
let g:ale_echo_cursor = 1
let g:ale_virtualtext_cursor = 0
let g:ale_virtualtext_prefix = '▬▶ '
highlight link ALEVirtualTextError ErrorMsg
highlight link ALEVirtualTextStyleError ALEVirtualTextError
highlight link ALEVirtualTextWarning WarningMsg
highlight link ALEVirtualTextInfo ALEVirtualTextWarning
highlight link ALEVirtualTextStyleWarning ALEVirtualTextWarning
let g:ale_go_langserver_executable = 'gopls'
let g:ale_go_gopls_options = '-remote=auto'
let g:ale_linters = {
\ 'go': ['golangci-lint', 'gopls'],
\ 'typescript': ['tsserver', 'typecheck'],
\ 'javascript': ['eslint'],
\ 'ruby': ['rubocop', 'ruby'],
\ 'proto': [],
\}
" This gets around typecheck errors for types defined in other files in the
" same package
let g:ale_go_golangci_lint_package = 1
let g:ale_go_golangci_lint_options = '--fast'
" Enable completion where available.
let g:ale_completion_enabled = 0