denols = {
filetypes = { "typescript", "typescriptreact" },
root_dir = function(...)
return nvim_lsp.util.root_pattern("deno.jsonc", "deno.json")(...)
end,
handlers = {
["textDocument/publishDiagnostics"] = nvim_lsp.diagnostic.on_publish_diagnostics,
},
settings = {
deno = {
enable = true,
lint = true,
unstable = true,
suggest = {
imports = {
hosts = {
["https://deno.land"] = true,
},
},
},
},
},
},
denols = {
filetypes = { "typescript", "typescriptreact" },
root_dir = function(...)
return nvim_lsp.util.root_pattern("deno.jsonc", "deno.json")(...)
end,
handlers = {
["textDocument/publishDiagnostics"] = nvim_lsp.diagnostic.on_publish_diagnostics,
},
settings = {
deno = {
enable = true,
lint = true,
unstable = true,
suggest = {
imports = {
hosts = {
["https://deno.land"] = true,
},
},
},
},
},
},