This commit is contained in:
Christian Nieves
2023-08-04 18:16:46 +00:00
parent a23d3e359a
commit e3c702a55d
6 changed files with 48 additions and 73 deletions

View File

@ -33,10 +33,6 @@ return {
local lsp_status = require("lsp-status")
lsp_status.register_progress()
-- Don't show the dumb matching stuff
vim.opt.shortmess:append("c")
vim.opt.completeopt = { "menu", "menuone", "noselect" }
vim.opt.spell = true
vim.opt.spelllang = { "en_us" }
vim.lsp.handlers["window/showMessage"] = function(_, result, ctx)
@ -73,10 +69,7 @@ return {
"bzl",
"typescript",
},
-- required for proto generated files jump
root_dir = function(fname)
return string.match(fname, "(/google/src/cloud/[%w_-]+/[%w_-]+/google3/).+$")
end,
root_dir = lspconfig.util.root_pattern("google3/*BUILD"),
settings = {},
},
}
@ -104,9 +97,7 @@ return {
"typescript",
"javascript",
},
root_dir = function(fname)
return string.match(fname, "(/google/src/cloud/[%w_-]+/[%w_-]+/google3/).+$")
end,
root_dir = lspconfig.util.root_pattern("google3/*BUILD"),
settings = {},
},
}
@ -126,7 +117,7 @@ return {
},
codeDescriptionSupport = true,
dataSupport = true,
layeredDiagnostics = true,
-- layeredDiagnostics = true,
}
capabilities = vim.tbl_extend("keep", capabilities or {}, lsp_status.capabilities)