fix(lsp): Enable using deno.enablePaths in denols settings (#3446)

This commit is contained in:
Erik Lindebratt
2024-06-04 11:31:29 +02:00
committed by GitHub
parent 1677b3b84f
commit 9a635ef8d6

View File

@ -244,8 +244,11 @@ return {
if LazyVim.lsp.is_enabled("denols") and LazyVim.lsp.is_enabled("vtsls") then
local is_deno = require("lspconfig.util").root_pattern("deno.json", "deno.jsonc")
LazyVim.lsp.disable("vtsls", is_deno)
LazyVim.lsp.disable("denols", function(root_dir)
return not is_deno(root_dir)
LazyVim.lsp.disable("denols", function(root_dir, config)
if not is_deno(root_dir) then
config.settings.deno.enable = false
end
return false
end)
end
end,