From 42e6ef422f25c8288682882778aefe95e0385b60 Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Fri, 18 Nov 2022 14:04:39 +0300 Subject: [PATCH] plugins/lsp: change deno root_dir pattern --- plugins/lsp/lspconfig.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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({