Use ALE for diagnostics
This commit is contained in:
parent
548e45da01
commit
1e62563e18
@ -62,6 +62,8 @@ let g:LanguageClient_autoStart = 1
|
|||||||
let g:LanguageClient_serverCommands = {
|
let g:LanguageClient_serverCommands = {
|
||||||
\ 'haskell': ['hie', '--lsp', '-d', '-l', $HOME.'/lang-server.log'],
|
\ 'haskell': ['hie', '--lsp', '-d', '-l', $HOME.'/lang-server.log'],
|
||||||
\ }
|
\ }
|
||||||
|
" we use ALE instead
|
||||||
|
let g:LanguageClient_diagnosticsEnable = 0
|
||||||
|
|
||||||
nnoremap <silent> <F7> :call LanguageClient#textDocument_hover()<CR>
|
nnoremap <silent> <F7> :call LanguageClient#textDocument_hover()<CR>
|
||||||
nnoremap <silent> gd :call LanguageClient#textDocument_definition()<CR>
|
nnoremap <silent> gd :call LanguageClient#textDocument_definition()<CR>
|
||||||
@ -77,7 +79,7 @@ call deoplete#enable()
|
|||||||
let g:ghcmod_hlint_options = ['--ignore=Eta reduce $']
|
let g:ghcmod_hlint_options = ['--ignore=Eta reduce $']
|
||||||
|
|
||||||
" ALE
|
" ALE
|
||||||
let g:ale_enabled = 0 " LSP does it
|
let g:ale_enabled = 1
|
||||||
let g:ale_linters = {'haskell':['ghc-mod', 'hdevtools'], 'c':['clang']}
|
let g:ale_linters = {'haskell':['ghc-mod', 'hdevtools'], 'c':['clang']}
|
||||||
" let g:ale_fixers = {
|
" let g:ale_fixers = {
|
||||||
" \ 'go': ['gofmt', 'goimports'],
|
" \ 'go': ['gofmt', 'goimports'],
|
||||||
|
Loading…
Reference in New Issue
Block a user