mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-08 21:44:47 +08:00
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.
15 lines
232 B
Lua
15 lines
232 B
Lua
local M = {}
|
|
|
|
function M.configured_lspconfig_servers()
|
|
local configs = require 'lspconfig.configs'
|
|
local keys = {}
|
|
|
|
for key, _ in pairs(configs) do
|
|
table.insert(keys, key)
|
|
end
|
|
|
|
return keys
|
|
end
|
|
|
|
return M
|