mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
#4607 No conflicts with nvim-lspconfig by default
Default `g:ale_disable_lsp` to a new mode `'auto'` by default. With this setting applied, ALE will now check for the presence of nvim-lspconfig and automatically turn off particular LSP linters if already configured via nvim-lspconfig. For users that do not use `nvim-lspconfig`, everything should work as before.
This commit is contained in:
16
README.md
16
README.md
@@ -603,9 +603,19 @@ including the option `g:ale_lint_on_enter`, and you can run ALE manually with
|
||||
ALE offers an API for letting any other plugin integrate with ALE. If you are
|
||||
interested in writing an integration, see `:help ale-lint-other-sources`.
|
||||
|
||||
If you are running ALE in combination with another LSP client, you may wish
|
||||
to disable ALE's LSP functionality entirely. You can add a setting to your
|
||||
vimrc/init.vim to do so.
|
||||
If you're running ALE in Neovim with
|
||||
[nvim-lspconfig](https://github.com/neovim/nvim-lspconfig) for configuring
|
||||
particular language servers. ALE will automatically disable its LSP
|
||||
functionality for any language servers configured with nvim-lspconfig by
|
||||
default. The following setting is applied by default:
|
||||
|
||||
```vim
|
||||
let g:ale_disable_lsp = 'auto'
|
||||
```
|
||||
|
||||
If you are running ALE in combination with another LSP client, you may wish to
|
||||
disable ALE's LSP functionality entirely. You can change the setting to `1` to
|
||||
always disable all LSP functionality.
|
||||
|
||||
```vim
|
||||
let g:ale_disable_lsp = 1
|
||||
|
||||
Reference in New Issue
Block a user