Add warning if lsp_cfg is false, but lsp_on_attach is not nil (#63)

pull/64/head
Craig Rodrigues 3 years ago committed by GitHub
parent 4c0a400956
commit 3a35bff71e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -164,6 +164,8 @@ function go.setup(cfg)
if _GO_NVIM_CFG.lsp_diag_hdlr then
require("go.lsp_diag")
end
elseif not _GO_NVIM_CFG.lsp_cfg and _GO_NVIM_CFG.lsp_on_attach then
vim.notify('lsp_on_attach ignored, because lsp_cfg is false', vim.lsp.log_levels.WARN)
end
require("go.coverage").highlight()
if _GO_NVIM_CFG.lsp_codelens then

Loading…
Cancel
Save