fix(lsp): fix ts/deno both attaching

This commit is contained in:
Folke Lemaitre 2024-05-29 15:39:17 +02:00
parent fba06ce9f5
commit f6bcf6f12c
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
2 changed files with 7 additions and 2 deletions

View file

@ -179,6 +179,11 @@ function M.get_config(server)
return rawget(configs, server)
end
function M.is_enabled(server)
local c = M.get_config(server)
return c and c.enabled ~= false
end
---@param server string
---@param cond fun( root_dir, config): boolean
function M.disable(server, cond)