fix google formatters

This commit is contained in:
Christian Nieves
2024-01-16 22:43:27 +00:00
parent 80b8c0e214
commit c19d01dc21
2 changed files with 37 additions and 29 deletions

View File

@ -27,7 +27,10 @@ function M.setup(capabilities)
"bzl",
"typescript",
},
root_dir = lspconfig.util.root_pattern("BUILD"),
-- root_dir = lspconfig.util.root_pattern("BUILD"),
root_dir = function(fname)
return string.match(fname, "(/google/src/cloud/[%w_-]+/[%w_-]+/google3/).+$")
end,
settings = {},
},
}
@ -55,7 +58,9 @@ function M.setup(capabilities)
"typescript",
"javascript",
},
root_dir = lspconfig.util.root_pattern("BUILD"),
root_dir = function(fname)
return string.match(fname, "(/google/src/cloud/[%w_-]+/[%w_-]+/google3/).+$")
end,
settings = {},
},
}
@ -83,6 +88,9 @@ function M.setup(capabilities)
["textDocument/publishDiagnostics"] = vim.lsp.with(vim.lsp.diagnostic.on_publish_diagnostics, {
underline = true,
}),
["textDocument/signatureHelp"] = vim.lsp.with(vim.lsp.handlers.signature_help, {
focusable = false,
}),
}
cider_lsp_handlers["$/syncResponse"] = function(_, result, ctx)