Integrate ALE with other LSP clients
masterALE includes its own LSP functionality, but it can coexist with other clients like coc.nvim or vim-lsp.
- Neovim
nvim-lspconfig: ALE automatically disables its LSP functionality for any language servers configured withnvim-lspconfigby default (g:ale_disable_lsp = 'auto'). - coc.nvim: To use both, configure
coc.nvimto send diagnostics to ALE by adding"diagnostic.displayByAle": trueto your.coc-settings.json. You should also disable ALE's LSP features (g:ale_disable_lsp = 1) to avoid duplication. - Neovim Diagnostics: For Neovim 0.7+, use
let g:ale_use_neovim_diagnostics_api = 1to display errors via the native Neovim API.
// In .coc-settings.json
{
"diagnostic.displayByAle": true
}