From 00be311d983c9e241d9c8da6e4864d66a0de7e46 Mon Sep 17 00:00:00 2001 From: Christian Nieves Date: Wed, 17 Jan 2024 17:09:02 +0000 Subject: [PATCH] root_dir --- vim/.vim/lua/config/lsp-google.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/vim/.vim/lua/config/lsp-google.lua b/vim/.vim/lua/config/lsp-google.lua index 7b8e5fc..c800e74 100644 --- a/vim/.vim/lua/config/lsp-google.lua +++ b/vim/.vim/lua/config/lsp-google.lua @@ -27,10 +27,7 @@ function M.setup(capabilities) "bzl", "typescript", }, - -- root_dir = lspconfig.util.root_pattern("BUILD"), - root_dir = function(fname) - return string.match(fname, "(/google/src/cloud/[%w_-]+/[%w_-]+/google3/).+$") - end, + root_dir = lspconfig.util.root_pattern("BUILD"), settings = {}, }, }