diff --git a/plugins/lsp/lspconfig.lua b/plugins/lsp/lspconfig.lua index d5bbc4a..c939c87 100644 --- a/plugins/lsp/lspconfig.lua +++ b/plugins/lsp/lspconfig.lua @@ -80,7 +80,9 @@ lsp_config.eslint.setup({}) -- deno -- To appropriately highlight codefences returned from denols vim.g.markdown_fenced_languages = { "ts=typescript" } -lsp_config.denols.setup({}) +lsp_config.denols.setup({ + root_dir = lsp_config.util.root_pattern("deno.json", "deno.jsonc"), +}) -- rust lsp_config.rust_analyzer.setup({